public static enum Ansi.Color extends java.lang.Enum<Ansi.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 Ansi.Color |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Ansi.Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Ansi.Color BLACK
public static final Ansi.Color RED
public static final Ansi.Color GREEN
public static final Ansi.Color YELLOW
public static final Ansi.Color BLUE
public static final Ansi.Color MAGENTA
public static final Ansi.Color CYAN
public static final Ansi.Color WHITE
public static final Ansi.Color DEFAULT
public static Ansi.Color[] values()
for (Ansi.Color c : Ansi.Color.values()) System.out.println(c);
public static Ansi.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<Ansi.Color>
public int value()
public int fg()
public int bg()
public int fgBright()
public int bgBright()
Copyright © 2009-2016 FuseSource, Corp.. All Rights Reserved.