public static enum Ansi.Color extends 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() |
String |
toString() |
int |
value() |
static Ansi.Color |
valueOf(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(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 String toString()
toString
in class Enum<Ansi.Color>
public int value()
public int fg()
public int bg()
public int fgBright()
public int bgBright()
Copyright © 2009-2014 FuseSource, Corp.. All Rights Reserved.