Package com.j3d.ui.theme
Enum Class J3DTheme
- All Implemented Interfaces:
Serializable,Comparable<J3DTheme>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEven lighter colourLighter colour.Darkest shade.Base Text Colour.Secondary Text Colour.Dark colour for panels and other UI elements. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolor()Return the color associated with this theme.static LocatorcommitAsGenericLbl(Component component, boolean setBackground) static LocatorcommitAsGenericUi(Component component) static ThemeEntrystatic voidstatic voidloadTheme(ThemeEntry themeEntry) static Colortransparency(J3DTheme col, int alpha) static J3DThemeReturns the enum constant of this class with the specified name.static J3DTheme[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TEXT_PRIMARY
Base Text Colour. -
TEXT_SECONDARY
Secondary Text Colour. -
ACCENT_PRIMARY
Even lighter colour -
ACCENT_SECONDARY
Lighter colour. -
UI_SURFACE
Dark colour for panels and other UI elements. -
BACKGROUND
Darkest shade. Used for button backgrounds and the entire scene background
-
-
Field Details
-
themeUpdater
-
currentLoadedTheme
-
-
Constructor Details
-
J3DTheme
private J3DTheme()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
color
Return the color associated with this theme.- Returns:
- the
Colorinstance representing this theme's color
-
transparency
-
commit
-
commitAsGenericUi
-
commitAsGenericLbl
-
getCurrentLoadedTheme
-
loadTheme
-
loadTheme
public static void loadTheme()
-