Package foundry.veil.color
Class ColorTheme
java.lang.Object
foundry.veil.color.ColorTheme
A color theme is a collection of colors. The colors can be accessed by name. Themes are intended to be used for color schemes.
A color theme can be used to apply a color scheme to a Tooltippable tooltip.
Themes can also be used to hold arbitrary color data mapped to strings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddProperty(@Nullable String name, IThemeProperty<?> property) voidaddProperty(IThemeProperty<?> property) voidclear()void@Nullable ObjectgetAndCastProperty(@Nullable String name) getColor()getNames()@Nullable IThemeProperty<?>getProperty(@Nullable String name) voidvoidremoveColor(@Nullable String name) voidremoveProperty(@Nullable String name)
-
Constructor Details
-
ColorTheme
public ColorTheme() -
ColorTheme
-
-
Method Details
-
addProperty
-
addProperty
-
getAndCastProperty
-
getProperty
-
removeProperty
-
clearProperties
public void clearProperties() -
addColor
-
addColor
-
getColor
-
getColor
-
removeColor
-
removeColor
public void removeColor() -
clear
public void clear() -
getNames
-
getColors
-
getColorsMap
-