Enum Class J3DTheme

java.lang.Object
java.lang.Enum<J3DTheme>
com.j3d.ui.theme.J3DTheme
All Implemented Interfaces:
Serializable, Comparable<J3DTheme>, Constable

public enum J3DTheme extends Enum<J3DTheme>
The Main Theme enum where all theme properties are accessed

Almost all UI classes use this for consistent theming so changing this will just mean death.

Author:
Lehlogonolo Poole
  • Enum Constant Details

    • TEXT_PRIMARY

      public static final J3DTheme TEXT_PRIMARY
      Base Text Colour.
    • TEXT_SECONDARY

      public static final J3DTheme TEXT_SECONDARY
      Secondary Text Colour.
    • ACCENT_PRIMARY

      public static final J3DTheme ACCENT_PRIMARY
      Even lighter colour
    • ACCENT_SECONDARY

      public static final J3DTheme ACCENT_SECONDARY
      Lighter colour.
    • UI_SURFACE

      public static final J3DTheme UI_SURFACE
      Dark colour for panels and other UI elements.
    • BACKGROUND

      public static final J3DTheme BACKGROUND
      Darkest shade. Used for button backgrounds and the entire scene background
  • Field Details

    • themeUpdater

      public static final ThemeUpdater themeUpdater
    • currentLoadedTheme

      private static ThemeEntry currentLoadedTheme
  • Constructor Details

    • J3DTheme

      private J3DTheme()
  • Method Details

    • values

      public static J3DTheme[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static J3DTheme valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • color

      public Color color()
      Return the color associated with this theme.
      Returns:
      the Color instance representing this theme's color
    • transparency

      public static Color transparency(J3DTheme col, int alpha)
    • commit

      public static Locator commit(J3DTheme themeProperty, Consumer<Color> propertySetter)
    • commitAsGenericUi

      public static Locator commitAsGenericUi(Component component)
    • commitAsGenericLbl

      public static ArrayList<Locator> commitAsGenericLbl(Component component, boolean setBackground)
    • getCurrentLoadedTheme

      public static ThemeEntry getCurrentLoadedTheme()
    • loadTheme

      public static void loadTheme(ThemeEntry themeEntry)
    • loadTheme

      public static void loadTheme()