- All Known Implementing Classes:
AbstractTheme.StyleImpl,DefaultMutableThemeStyle
public interface ThemeStyle
ThemeStyle is the lowest entry in the theme hierarchy, containing the actual colors and SGRs to use. When drawing a
component, you would pick out a
ThemeDefinition that applies to the whole component and then choose to
activate individual ThemeStyles when drawing the different parts of the component.-
Method Summary
Modifier and TypeMethodDescriptionReturns the background color associated with this styleReturns the foreground color associated with this stylegetSGRs()Returns the set of SGR flags associated with this style.
-
Method Details
-
getForeground
TextColor getForeground()Returns the foreground color associated with this style- Returns:
- foreground color associated with this style
-
getBackground
TextColor getBackground()Returns the background color associated with this style- Returns:
- background color associated with this style
-
getSGRs
Returns the set of SGR flags associated with this style. ThisEnumSetis either unmodifiable or a copy so altering it will not change the theme in any way.- Returns:
- SGR flags associated with this style
-