public enum TextColor extends Enum<TextColor>
Enum Constant and Description |
---|
BLACK |
BRIGHT_BLUE |
BRIGHT_CYAN |
BRIGHT_GREEN |
BRIGHT_MAGENTA |
BRIGHT_RED |
BRIGHT_YELLOW |
DARK_BLUE |
DARK_CYAN |
DARK_GRAY |
DARK_GREEN |
DARK_MAGENTA |
DARK_RED |
DARK_YELLOW |
GRAY |
WHITE |
Modifier and Type | Method and Description |
---|---|
static TextColor |
fromInt(int value)
Create a TextColor object.
|
static TextColor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextColor BLACK
public static final TextColor DARK_GRAY
public static final TextColor DARK_RED
public static final TextColor DARK_YELLOW
public static final TextColor DARK_GREEN
public static final TextColor DARK_CYAN
public static final TextColor DARK_BLUE
public static final TextColor DARK_MAGENTA
public static final TextColor GRAY
public static final TextColor WHITE
public static final TextColor BRIGHT_RED
public static final TextColor BRIGHT_YELLOW
public static final TextColor BRIGHT_GREEN
public static final TextColor BRIGHT_CYAN
public static final TextColor BRIGHT_BLUE
public static final TextColor BRIGHT_MAGENTA
public static TextColor[] values()
for (TextColor c : TextColor.values()) System.out.println(c);
public static TextColor 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 static TextColor fromInt(int value)
value
- Integer value to be converted to a TextColor object.value
. If no TextColor
object has that value, null is returned.