|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objexcel.gui.IRCColorText
IRCColorText parses IRC color
Field Summary | |
static java.awt.Color |
aquamarine
|
static char |
BOLD
irc color character marking bold text |
static char |
COLOR
irc color character marking color text |
static java.awt.Color |
darkolivegreen
|
static java.awt.Color |
lightcyan
|
static java.awt.Color |
lightyellow
|
static java.awt.Color |
lime
|
static java.awt.Color |
maroon
|
static char |
PLAIN
irc color character marking plain text |
static java.awt.Color |
purple
|
static char |
REVERSE
irc color character marking reverse text |
static java.awt.Color |
seagreen
|
static char |
UNDERLINE
irc color character marking underlined text |
Method Summary | |
void |
addColorText(javax.swing.text.StyledDocument doc,
java.lang.String s,
javax.swing.text.Style given)
append the irc colored text to the document based on the provided Style |
java.awt.Color |
getColor(int ircColor)
return a Color for the equivalent IRC color number (a la MIRC). |
static IRCColorText |
getInstance()
save a few object allocations by getting the singleton |
java.lang.String |
getTextFromColorText(java.lang.String s)
remove any coloration from the text and return the plain text. |
void |
setColorText(javax.swing.text.StyledDocument doc,
java.lang.String s,
javax.swing.text.Style given)
pop colored text via the irc text into the styled doc. |
void |
setStrippedText(javax.swing.text.JTextComponent comp,
java.lang.String s)
remove any coloration from the text and put it into the component. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final char PLAIN
public static final char BOLD
public static final char COLOR
public static final char UNDERLINE
public static final char REVERSE
public static final java.awt.Color maroon
public static final java.awt.Color purple
public static final java.awt.Color darkolivegreen
public static final java.awt.Color lime
public static final java.awt.Color seagreen
public static final java.awt.Color aquamarine
public static final java.awt.Color lightcyan
public static final java.awt.Color lightyellow
Method Detail |
public static IRCColorText getInstance()
public void setColorText(javax.swing.text.StyledDocument doc, java.lang.String s, javax.swing.text.Style given)
public void setStrippedText(javax.swing.text.JTextComponent comp, java.lang.String s)
public java.lang.String getTextFromColorText(java.lang.String s)
public void addColorText(javax.swing.text.StyledDocument doc, java.lang.String s, javax.swing.text.Style given)
public java.awt.Color getColor(int ircColor)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |