-
- 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 aThemeDefinition
that applies to the whole component and then choose to activate individualThemeStyle
s when drawing the different parts of the component.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TextColor
getBackground()
Returns the background color associated with this styleTextColor
getForeground()
Returns the foreground color associated with this stylejava.util.EnumSet<SGR>
getSGRs()
Returns the set of SGR flags associated with this style.
-
-
-
Method Detail
-
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
java.util.EnumSet<SGR> getSGRs()
Returns the set of SGR flags associated with this style. ThisEnumSet
is either unmodifiable or a copy so altering it will not change the theme in any way.- Returns:
- SGR flags associated with this style
-
-