FormattedTextFragment
Leave feedback
On this page
Inheritance: java.lang.Object
public abstract class FormattedTextFragment
Provides abstract base class for a fragment of formatted text in a content.
| Constructor | Description |
|---|---|
| FormattedTextFragment() |
| Method | Description |
|---|---|
| getText() | Gets the fragment text. |
| getFont() | Gets the font of the text. |
| getForegroundColor() | Gets the foreground color of the text. |
| getBackgroundColor() | Gets the background color of the text. |
public FormattedTextFragment()
public abstract String getText()
Gets the fragment text.
Returns: java.lang.String - The fragment text.
public abstract Font getFont()
Gets the font of the text.
Returns: Font - The font of the text.
public abstract Color getForegroundColor()
Gets the foreground color of the text.
Returns: Color - The foreground color of the text.
public abstract Color getBackgroundColor()
Gets the background color of the text.
Returns: Color - The background color of the text.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.