@Immutable public enum EMrmrsColor extends Enum<EMrmrsColor> implements IGuiColor
EColorPalette
Enum Constant and Description |
---|
AQUA |
BLACK |
BLUE |
FUCHSIA |
GRAY |
GREEN |
LIME |
MAROON |
NAVY |
OLIVE |
ORANGE |
PURPLE |
RED |
SILVER |
TEAL |
TRANSPARENT |
WHITE |
YELLOW |
Modifier and Type | Method and Description |
---|---|
<T extends Serializable> |
getField(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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getStyleBackground, getStyleClassBackground, getStyleClassTextOnWhite, getStyleTextOnWhite, supportsField
public static final EMrmrsColor AQUA
public static final EMrmrsColor BLACK
public static final EMrmrsColor BLUE
public static final EMrmrsColor FUCHSIA
public static final EMrmrsColor GRAY
public static final EMrmrsColor GREEN
public static final EMrmrsColor LIME
public static final EMrmrsColor MAROON
public static final EMrmrsColor NAVY
public static final EMrmrsColor OLIVE
public static final EMrmrsColor ORANGE
public static final EMrmrsColor PURPLE
public static final EMrmrsColor RED
public static final EMrmrsColor SILVER
public static final EMrmrsColor TEAL
public static final EMrmrsColor TRANSPARENT
public static final EMrmrsColor WHITE
public static final EMrmrsColor YELLOW
public static EMrmrsColor[] values()
for (EMrmrsColor c : EMrmrsColor.values()) System.out.println(c);
public static EMrmrsColor valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic <T extends Serializable> T getField(IColorField<T> field) throws IllegalArgumentException
IGuiColor
getField
in interface IGuiColor
T
- Type of the field value.field
- A field to retrieve.IllegalArgumentException
- If the given field is not supported, see EColorPalette.supportsField(de.xima.fc.gui.common.interfaces.IColorField<?>)
.public com.google.common.collect.ImmutableSet<IColorField<?>> getSupportedFields()
getSupportedFields
in interface IGuiColor
IGuiColor.supportsField(IColorField)
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.