public static enum JkAnsi.Color extends java.lang.Enum<JkAnsi.Color>
Enum Constant and Description |
---|
BLACK |
BLUE |
CYAN |
DEFAULT |
GREEN |
MAGENTA |
RED |
WHITE |
YELLOW |
Modifier and Type | Method and Description |
---|---|
int |
bg() |
int |
bgBright() |
int |
fg() |
int |
fgBright() |
java.lang.String |
toString() |
int |
value() |
static JkAnsi.Color |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JkAnsi.Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JkAnsi.Color BLACK
public static final JkAnsi.Color RED
public static final JkAnsi.Color GREEN
public static final JkAnsi.Color YELLOW
public static final JkAnsi.Color BLUE
public static final JkAnsi.Color MAGENTA
public static final JkAnsi.Color CYAN
public static final JkAnsi.Color WHITE
public static final JkAnsi.Color DEFAULT
public static JkAnsi.Color[] values()
for (JkAnsi.Color c : JkAnsi.Color.values()) System.out.println(c);
public static JkAnsi.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<JkAnsi.Color>
public int value()
public int fg()
public int bg()
public int fgBright()
public int bgBright()