|
|||||||||
| Home >> All >> com >> splendid >> [ awtchat overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.splendid.awtchat
Class SmileyTextArea

java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
com.splendid.awtchat.SmileyTextArea
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
- public class SmileyTextArea
- extends java.awt.Panel
| Nested Class Summary |
| Nested classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
static java.awt.Font |
DEFAULT_FONT
|
static int |
FAST
|
(package private) static int |
maxCodeLength
|
private ar.com.jkohen.awt.NickInfoPopup |
nick_pop
|
private static ar.com.jkohen.util.Resources |
res
|
static int |
SAFE
|
private java.awt.Scrollbar |
scrollbar
|
(package private) static java.util.Hashtable |
smileys
|
private SmileyTextAreaArea |
smileyText
|
static int |
SMOOTH
|
(package private) static boolean |
staticinitialized
|
| Fields inherited from class java.awt.Panel |
|
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
SmileyTextArea(HyperlinkReceiver hr,
CopyText cp)
Constructor. |
|
| Method Summary | |
void |
append(java.lang.String s)
insert a line of text (smileys, URLs and IRC attributes interpreted) (URLs == http://* | https://* | ftp://* | www.* | #* (case is ignored)) (IRC attributes are (from MircMessage) BELL, BOLD, ITALIC, UNDERLINE, COLOR, REVERSE, RESET) |
void |
appendNickInfo(java.lang.String s,
java.lang.String n)
same as append, but add a NickInfoPopup |
void |
appendNoUrls(java.lang.String s)
same as append, except, URL interpretation is suppressed (channels, email, web-adresses) |
void |
clear()
|
java.awt.Color |
getBackground()
Returns this component's background color. |
int |
getBufferlen()
get the length of the text buffer (number of appends after which old text is deleted) (-1 means infinite buffer) |
static java.awt.Color[] |
getColorPalette()
get the static color palette. |
java.awt.Color |
getColorPaletteEntry(int n)
get one of the color paette entries (n may be a number from 0 to 15, it corresponds to the number associated with MircMessage.COLOR IRC attribute) |
java.awt.Font |
getFont()
get the actual base font (not bold and not italic) |
java.awt.Color |
getForeground()
Returns this component's foreground color. |
int |
getSubsequentIndent()
get the indent of subsequent lines if a line must be split (default is 12) |
static void |
init()
|
void |
setBackground(java.awt.Color c)
Sets this component's background color to the specified color. |
void |
setBreaks(boolean canBreak)
|
void |
setBufferlen(int bufferlen)
set the length of the text buffer (number of appends after which old text is deleted) (set -1 for infinite buffer) |
void |
setColorPaletteEntry(int n,
java.awt.Color c)
change one of the color paette entries (n may be a number from 0 to 15, it corresponds to the number associated with MircMessage.COLOR IRC attribute) |
void |
setFont(java.awt.Font f)
change the font (only name and size are used) |
void |
setFont(java.lang.String name,
int size)
change the font |
void |
setForeground(java.awt.Color c)
Sets this component's foreground color to the specified color. |
void |
setMode(int mode)
Scrolling display mode, may be SMOOTH, FAST, SAFE (initially it is SMOOTH) Set mode to FAST if problems arise with smooth scrolling Set mode to SAFE if problems arise with any scrolling (always pains the whole) |
void |
setSelectable(boolean b)
|
void |
setSubsequentIndent(int indent)
set the indent of subsequent lines (>=0) if a line must be split (default is 12) |
void |
setTabs(int[] tabs)
|
| Methods inherited from class java.awt.Panel |
addNotify, getAccessibleContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
DEFAULT_FONT
public static java.awt.Font DEFAULT_FONT
res
private static ar.com.jkohen.util.Resources res
SMOOTH
public static int SMOOTH
FAST
public static int FAST
SAFE
public static int SAFE
smileyText
private SmileyTextAreaArea smileyText
scrollbar
private java.awt.Scrollbar scrollbar
nick_pop
private ar.com.jkohen.awt.NickInfoPopup nick_pop
smileys
static java.util.Hashtable smileys
maxCodeLength
static int maxCodeLength
staticinitialized
static boolean staticinitialized
| Constructor Detail |
SmileyTextArea
public SmileyTextArea(HyperlinkReceiver hr, CopyText cp)
- Constructor. supply HyperlinkReceiver for getting the clicked URLs
| Method Detail |
init
public static void init()
setSubsequentIndent
public void setSubsequentIndent(int indent)
- set the indent of subsequent lines (>=0) if a line must be split (default is 12)
getSubsequentIndent
public int getSubsequentIndent()
- get the indent of subsequent lines if a line must be split (default is 12)
setBackground
public void setBackground(java.awt.Color c)
- Description copied from class:
java.awt.Component - Sets this component's background color to the specified color. The parts
of the component affected by the background color may by system dependent.
This is a bound property.
setForeground
public void setForeground(java.awt.Color c)
- Description copied from class:
java.awt.Component - Sets this component's foreground color to the specified color. This is a
bound property.
getBackground
public java.awt.Color getBackground()
- Description copied from class:
java.awt.Component - Returns this component's background color. If not set, this is inherited
from the parent.
getForeground
public java.awt.Color getForeground()
- Description copied from class:
java.awt.Component - Returns this component's foreground color. If not set, this is inherited
from the parent.
setColorPaletteEntry
public void setColorPaletteEntry(int n,
java.awt.Color c)
- change one of the color paette entries (n may be a number from 0 to 15,
it corresponds to the number associated with MircMessage.COLOR IRC attribute)
getColorPaletteEntry
public java.awt.Color getColorPaletteEntry(int n)
- get one of the color paette entries (n may be a number from 0 to 15,
it corresponds to the number associated with MircMessage.COLOR IRC attribute)
getColorPalette
public static java.awt.Color[] getColorPalette()
- get the static color palette.
setFont
public void setFont(java.awt.Font f)
- change the font (only name and size are used)
setFont
public void setFont(java.lang.String name, int size)
- change the font
getFont
public java.awt.Font getFont()
- get the actual base font (not bold and not italic)
setBufferlen
public void setBufferlen(int bufferlen)
- set the length of the text buffer (number of appends after which old text is deleted)
(set -1 for infinite buffer)
getBufferlen
public int getBufferlen()
- get the length of the text buffer (number of appends after which old text is deleted)
(-1 means infinite buffer)
append
public void append(java.lang.String s)
- insert a line of text (smileys, URLs and IRC attributes interpreted)
(URLs == http://* | https://* | ftp://* | www.* | #* (case is ignored))
(IRC attributes are (from MircMessage) BELL, BOLD, ITALIC,
UNDERLINE, COLOR, REVERSE, RESET)
appendNoUrls
public void appendNoUrls(java.lang.String s)
- same as append, except, URL interpretation is suppressed (channels, email, web-adresses)
appendNickInfo
public void appendNickInfo(java.lang.String s, java.lang.String n)
- same as append, but add a NickInfoPopup
setMode
public void setMode(int mode)
- Scrolling display mode, may be SMOOTH, FAST, SAFE (initially it is SMOOTH)
Set mode to FAST if problems arise with smooth scrolling
Set mode to SAFE if problems arise with any scrolling (always pains the whole)
setBreaks
public void setBreaks(boolean canBreak)
setTabs
public void setTabs(int[] tabs)
clear
public void clear()
setSelectable
public void setSelectable(boolean b)
|
|||||||||
| Home >> All >> com >> splendid >> [ awtchat overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC