|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface RichTextArea.BasicFormatter
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 |
|---|
java.lang.String getBackColor()
java.lang.String getForeColor()
boolean isBold()
boolean isItalic()
boolean isSubscript()
boolean isSuperscript()
boolean isUnderlined()
void selectAll()
void setBackColor(java.lang.String color)
color - the new background colorvoid setFontName(java.lang.String name)
name - the new font namevoid setFontSize(RichTextArea.FontSize fontSize)
fontSize - the new font sizevoid setForeColor(java.lang.String color)
color - the new foreground colorvoid setJustification(RichTextArea.Justification justification)
justification - the new justificationvoid toggleBold()
void toggleItalic()
void toggleSubscript()
void toggleSuperscript()
void toggleUnderline()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||