Package de.xima.fc.gui.common.enums
Enum EMrmrsColor
- All Implemented Interfaces:
IGuiColor
,Serializable
,Comparable<EMrmrsColor>
Color palette from https://github.com/mrmrs/colors.
- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescription<T extends Serializable>
TgetField
(IColorField<T> field) Finds the value of the given color palette field.com.google.common.collect.ImmutableSet<IColorField<?>>
static EMrmrsColor
Returns the enum constant of this type with the specified name.static EMrmrsColor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface de.xima.fc.interfaces.color.IGuiColor
getStyleBackground, getStyleClassBackground, getStyleClassTextOnWhite, getStyleTextOnWhite, supportsField
-
Enum Constant Details
-
AQUA
-
BLACK
-
BLUE
-
FUCHSIA
-
GRAY
-
GREEN
-
LIME
-
MAROON
-
NAVY
-
OLIVE
-
ORANGE
-
PURPLE
-
RED
-
SILVER
-
TEAL
-
TRANSPARENT
-
WHITE
-
YELLOW
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getField
Description copied from interface:IGuiColor
Finds the value of the given color palette field.- Specified by:
getField
in interfaceIGuiColor
- Type Parameters:
T
- Type of the field value.- Parameters:
field
- A field to retrieve.- Returns:
- The value of this color palette entry for the given field.
- Throws:
IllegalArgumentException
- If the given field is not supported, seeEColorPalette#supportsField
.
-
getSupportedFields
- Specified by:
getSupportedFields
in interfaceIGuiColor
- Returns:
- All fields supported by this color.
- See Also:
-