Interface ThemeStyle

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 Type
    Method
    Description
    Returns the background color associated with this style
    Returns the foreground color associated with this style
    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

      EnumSet<SGR> getSGRs()
      Returns the set of SGR flags associated with this style. This EnumSet is either unmodifiable or a copy so altering it will not change the theme in any way.
      Returns:
      SGR flags associated with this style