Package foundry.veil.api.client.color
Class ColorTheme
java.lang.Object
foundry.veil.api.client.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.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addProperty
(IThemeProperty<?> property) void
addProperty
(@Nullable String name, IThemeProperty<?> property) void
clear()
void
@Nullable Object
getAndCastProperty
(@Nullable String name) getColor()
getNames()
@Nullable IThemeProperty
<?> getProperty
(@Nullable String name) void
void
removeColor
(@Nullable String name) void
removeProperty
(@Nullable String name)
-
Field Details
-
DEFAULT
-
-
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
-