public static enum Tools.Color extends java.lang.Enum<Tools.Color>
| Enum Constant and Description |
|---|
ANSI_BLACK
ANSI black code.
|
ANSI_BLUE
ANSI blue code.
|
ANSI_CYAN
ANSI cyan code.
|
ANSI_GREEN
ANSI green code.
|
ANSI_PURPLE
ANSI purple code.
|
ANSI_RED
ANSI red code.
|
ANSI_RESET
ANSI reset code - needed to stop the use of a color arround a String.
|
ANSI_WHITE
ANSI white code.
|
ANSI_YELLOW
ANSI yellow code.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
static Tools.Color |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Tools.Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Tools.Color ANSI_RESET
public static final Tools.Color ANSI_BLACK
public static final Tools.Color ANSI_RED
public static final Tools.Color ANSI_GREEN
public static final Tools.Color ANSI_YELLOW
public static final Tools.Color ANSI_BLUE
public static final Tools.Color ANSI_PURPLE
public static final Tools.Color ANSI_CYAN
public static final Tools.Color ANSI_WHITE
public static Tools.Color[] values()
for (Tools.Color c : Tools.Color.values()) System.out.println(c);
public static Tools.Color 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.lang.String toString()
toString in class java.lang.Enum<Tools.Color>