public enum CatanColor extends java.lang.Enum<CatanColor> implements java.io.Serializable
Enum Constant and Description |
---|
BLUE |
BROWN |
GREEN |
ORANGE |
PUCE |
PURPLE |
RED |
WHITE |
YELLOW |
Modifier and Type | Field and Description |
---|---|
private java.awt.Color |
color |
Modifier and Type | Method and Description |
---|---|
static CatanColor |
fromString(java.lang.String s) |
java.awt.Color |
getJavaColor() |
static java.lang.String |
toString(CatanColor type) |
static CatanColor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CatanColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CatanColor RED
public static final CatanColor ORANGE
public static final CatanColor YELLOW
public static final CatanColor BLUE
public static final CatanColor GREEN
public static final CatanColor PURPLE
public static final CatanColor PUCE
public static final CatanColor WHITE
public static final CatanColor BROWN
public static CatanColor[] values()
for (CatanColor c : CatanColor.values()) System.out.println(c);
public static CatanColor valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.awt.Color getJavaColor()
public static java.lang.String toString(CatanColor type)
public static CatanColor fromString(java.lang.String s)