public static class FormattableSectionText.FormattedText
extends java.lang.Object
Constructor and Description |
---|
FormattedText(boolean italic,
boolean bold,
java.awt.Color color,
java.lang.String text)
creates a formatted text
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor() |
java.lang.String |
getText() |
int |
getTextType() |
boolean |
isBold() |
boolean |
isItalic() |
public FormattedText(boolean italic, boolean bold, java.awt.Color color, java.lang.String text)
italic
- if true, italicbold
- if true, boldcolor
- selected color (if null, will be black)text
- text to print with the given formattingpublic int getTextType()
public boolean isItalic()
public boolean isBold()
public java.awt.Color getColor()
public java.lang.String getText()