Class AbstractTheme

java.lang.Object
org.jhotdraw8.theme.AbstractTheme
All Implemented Interfaces:
Theme
Direct Known Subclasses:
AbstractAtlantaFXTheme

public abstract class AbstractTheme extends Object implements Theme
  • Constructor Details

  • Method Details

    • getAppearance

      public @NonNull String getAppearance()
      Description copied from interface: Theme
      Gets the appearance of the theme.

      This is an open-ended set of values. Common values are "light", "dark".

      light
      A light appearance ("day mode") consists of light background colors and dark foreground/text colors.
      dark
      A dark appearance ("night mode") consists of the opposite, with dark background colors and light foreground/text colors.
      Specified by:
      getAppearance in interface Theme
      Returns:
      the appearance
    • getName

      public @NonNull String getName()
      Description copied from interface: Theme
      Gets the name of the theme.
      Specified by:
      getName in interface Theme
      Returns:
      the name of the theme.