public static class ClassicTheme.TextLookAndFeelImpl extends java.lang.Object implements Theme.TextLookAndFeel
Theme.TextLookAndFeel.TextBaseline
Modifier and Type | Field and Description |
---|---|
private ColorRgb |
backgroundColor
The background color
|
private ColorRgb |
selectionBackgroundColor
The selection background color
|
private ColorRgb |
selectionTextColor
The selection text color
|
private Theme.TextLookAndFeel.TextBaseline |
textBaseline
The text baseline
|
private ColorRgb |
textColor
The text color
|
Constructor and Description |
---|
TextLookAndFeelImpl(ColorRgb backgroundColor,
ColorRgb textColor,
ColorRgb selectionBackgroundColor,
ColorRgb selectionTextColor,
Theme.TextLookAndFeel.TextBaseline textBaseline)
Creates this immutable instance.
|
Modifier and Type | Method and Description |
---|---|
ColorRgb |
getBackgroundColor()
Gets the text background color.
|
ColorRgb |
getSelectionBackgroundColor()
Gets the selected text background color.
|
ColorRgb |
getSelectionTextColor()
Gets the selected text color.
|
Theme.TextLookAndFeel.TextBaseline |
getTextBaseline()
Gets the text baseline property.
|
ColorRgb |
getTextColor()
Gets the text color.
|
private final ColorRgb backgroundColor
private final ColorRgb textColor
private final ColorRgb selectionBackgroundColor
private final ColorRgb selectionTextColor
private final Theme.TextLookAndFeel.TextBaseline textBaseline
public TextLookAndFeelImpl(ColorRgb backgroundColor, ColorRgb textColor, ColorRgb selectionBackgroundColor, ColorRgb selectionTextColor, Theme.TextLookAndFeel.TextBaseline textBaseline)
backgroundColor
- The background colortextColor
- The text colortextBaseline
- The text baselinepublic ColorRgb getBackgroundColor()
getBackgroundColor
in interface Theme.TextLookAndFeel
public ColorRgb getTextColor()
getTextColor
in interface Theme.TextLookAndFeel
public Theme.TextLookAndFeel.TextBaseline getTextBaseline()
getTextBaseline
in interface Theme.TextLookAndFeel
public ColorRgb getSelectionBackgroundColor()
Theme.TextLookAndFeel
getSelectionBackgroundColor
in interface Theme.TextLookAndFeel
public ColorRgb getSelectionTextColor()
Theme.TextLookAndFeel
getSelectionTextColor
in interface Theme.TextLookAndFeel