-
- All Known Implementing Classes:
AbstractTheme.StyleImpl,DefaultMutableThemeStyle
public interface ThemeStyleThemeStyle is the lowest entry in the theme hierarchy, containing the actual colors and SGRs to use. When drawing a component, you would pick out aThemeDefinitionthat applies to the whole component and then choose to activate individualThemeStyles when drawing the different parts of the component.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TextColorgetBackground()Returns the background color associated with this styleTextColorgetForeground()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. ThisEnumSetis either unmodifiable or a copy so altering it will not change the theme in any way.- Returns:
- SGR flags associated with this style
-
-