|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used to access basic formatting options, when available.
If the implementation supports basic formatting, then
RichTextArea.getBasicFormatter()
will return an instance of this
class.
Method Summary | |
java.lang.String |
getBackColor()
Gets the background color. |
java.lang.String |
getForeColor()
Gets the foreground color. |
boolean |
isBold()
Is the current region bold? |
boolean |
isItalic()
Is the current region italic? |
boolean |
isSubscript()
Is the current region subscript? |
boolean |
isSuperscript()
Is the current region superscript? |
boolean |
isUnderlined()
Is the current region underlined? |
void |
selectAll()
Selects all the text. |
void |
setBackColor(java.lang.String color)
Sets the background color. |
void |
setFontName(java.lang.String name)
Sets the font name. |
void |
setFontSize(RichTextArea.FontSize fontSize)
Sets the font size. |
void |
setForeColor(java.lang.String color)
Sets the foreground color. |
void |
setJustification(RichTextArea.Justification justification)
Sets the justification. |
void |
toggleBold()
Toggles bold. |
void |
toggleItalic()
Toggles italic. |
void |
toggleSubscript()
Toggles subscript. |
void |
toggleSuperscript()
Toggles superscript. |
void |
toggleUnderline()
Toggles underline. |
Method Detail |
public java.lang.String getBackColor()
public java.lang.String getForeColor()
public boolean isBold()
public boolean isItalic()
public boolean isSubscript()
public boolean isSuperscript()
public boolean isUnderlined()
public void selectAll()
public void setBackColor(java.lang.String color)
color
- the new background colorpublic void setFontName(java.lang.String name)
name
- the new font namepublic void setFontSize(RichTextArea.FontSize fontSize)
fontSize
- the new font sizepublic void setForeColor(java.lang.String color)
color
- the new foreground colorpublic void setJustification(RichTextArea.Justification justification)
justification
- the new justificationpublic void toggleBold()
public void toggleItalic()
public void toggleSubscript()
public void toggleSuperscript()
public void toggleUnderline()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |