public abstract class FormattedTextFragment extends Object
Provides abstract base class for a fragment of formatted text in a content.
Constructor and Description |
---|
FormattedTextFragment()
Initializes a new instance of the
FormattedTextFragment class. |
Modifier and Type | Method and Description |
---|---|
abstract Color |
getBackgroundColor()
Gets the background color of the text.
|
abstract Font |
getFont()
Gets the font of the text.
|
abstract Color |
getForegroundColor()
Gets the foreground color of the text.
|
abstract String |
getText()
Gets the fragment text.
|
public FormattedTextFragment()
Initializes a new instance of the FormattedTextFragment
class.
public abstract String getText()
Gets the fragment text.
public abstract Font getFont()
Gets the font of the text.
public abstract Color getForegroundColor()
Gets the foreground color of the text.
public abstract Color getBackgroundColor()
Gets the background color of the text.
Copyright © 2020. All rights reserved.