Enum Constant and Description |
---|
blue |
brown |
green |
grey |
magenta |
orange |
red |
violet |
yellow |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor() |
static Flag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Flag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Flag orange
public static final Flag blue
public static final Flag green
public static final Flag red
public static final Flag brown
public static final Flag magenta
public static final Flag violet
public static final Flag yellow
public static final Flag grey
public static Flag[] values()
for (Flag c : Flag.values()) System.out.println(c);
public static Flag 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 getColor()