Package de.xima.fc.gui.common.enums
Enum EMrmrsColor
- java.lang.Object
-
- java.lang.Enum<EMrmrsColor>
-
- de.xima.fc.gui.common.enums.EMrmrsColor
-
- All Implemented Interfaces:
IGuiColor
,Serializable
,Comparable<EMrmrsColor>
@Immutable public enum EMrmrsColor extends Enum<EMrmrsColor> implements IGuiColor
Color palette from https://github.com/mrmrs/colors.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
EColorPalette
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Serializable>
TgetField(IColorField<T> field)
Finds the value of the given color palette field.com.google.common.collect.ImmutableSet<IColorField<?>>
getSupportedFields()
static EMrmrsColor
valueOf(String name)
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 Detail
-
AQUA
public static final EMrmrsColor AQUA
-
BLACK
public static final EMrmrsColor BLACK
-
BLUE
public static final EMrmrsColor BLUE
-
FUCHSIA
public static final EMrmrsColor FUCHSIA
-
GRAY
public static final EMrmrsColor GRAY
-
GREEN
public static final EMrmrsColor GREEN
-
LIME
public static final EMrmrsColor LIME
-
MAROON
public static final EMrmrsColor MAROON
-
NAVY
public static final EMrmrsColor NAVY
-
OLIVE
public static final EMrmrsColor OLIVE
-
ORANGE
public static final EMrmrsColor ORANGE
-
PURPLE
public static final EMrmrsColor PURPLE
-
RED
public static final EMrmrsColor RED
-
SILVER
public static final EMrmrsColor SILVER
-
TEAL
public static final EMrmrsColor TEAL
-
TRANSPARENT
public static final EMrmrsColor TRANSPARENT
-
WHITE
public static final EMrmrsColor WHITE
-
YELLOW
public static final EMrmrsColor YELLOW
-
-
Method Detail
-
values
public static EMrmrsColor[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EMrmrsColor c : EMrmrsColor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EMrmrsColor valueOf(String name)
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
public <T extends Serializable> T getField(IColorField<T> field) throws IllegalArgumentException
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
public com.google.common.collect.ImmutableSet<IColorField<?>> getSupportedFields()
- Specified by:
getSupportedFields
in interfaceIGuiColor
- Returns:
- All fields supported by this color.
- See Also:
IGuiColor.supportsField(IColorField)
-
-