|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrpg.core.ChatMarkup
public class ChatMarkup
ChatMarkup acts as a specifier for the formatting of a Chat message (or a piece of it). It holds a font name, point size, color, and three boolean flags: bold, underline, and italic.
Constructor Summary | |
---|---|
ChatMarkup()
Creates a default ChatMarkup container using 12-point SansSerif, in black, without any special characteristics. |
|
ChatMarkup(GameIcon tmpl)
Creates a ChatMarkup container using some GameIcon's voice characteristics as its starting point. |
Method Summary | |
---|---|
boolean |
getFlagBold()
Returns true if this markup indicates text should be in bold. |
boolean |
getFlagItalic()
Returns true if this markup indicates text should be italicized. |
boolean |
getFlagUnderline()
Returns true if this markup indicates text should be underlined. |
java.lang.String |
getFont()
Returns the name of the font family to use for this markup. |
java.awt.Color |
getFontColor()
Returns the font color to use for this markup. |
int |
getFontSize()
Returns the point size of the font to use for this markup. |
void |
setFlagBold(boolean value)
Sets whether this markup indicates text should be in bold. |
void |
setFlagItalic(boolean value)
Sets whether this markup indicates text should be italicized. |
void |
setFlagUnderline(boolean value)
Sets whether this markup indicates text should be underlined. |
void |
setFont(java.lang.String value)
Sets the name of the font family to use for this markup. |
void |
setFontColor(java.awt.Color value)
Sets the font color to use for this markup. |
void |
setFontSize(int value)
Sets the point size of the font to use for this markup. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChatMarkup()
public ChatMarkup(GameIcon tmpl)
Method Detail |
---|
public java.lang.String getFont()
public void setFont(java.lang.String value)
public int getFontSize()
public void setFontSize(int value)
public java.awt.Color getFontColor()
public void setFontColor(java.awt.Color value)
public boolean getFlagBold()
public void setFlagBold(boolean value)
public boolean getFlagUnderline()
public void setFlagUnderline(boolean value)
public boolean getFlagItalic()
public void setFlagItalic(boolean value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |