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 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. 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