public static enum AnsiColors.BitDepth extends Enum<AnsiColors.BitDepth>
Enum Constant and Description |
---|
EIGHT
8 bits (256 color).
|
FOUR
4 bits (16 color).
|
Modifier and Type | Method and Description |
---|---|
static AnsiColors.BitDepth |
of(int bits) |
static AnsiColors.BitDepth |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnsiColors.BitDepth[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnsiColors.BitDepth FOUR
AnsiColor
public static final AnsiColors.BitDepth EIGHT
Ansi8BitColor
public static AnsiColors.BitDepth[] values()
for (AnsiColors.BitDepth c : AnsiColors.BitDepth.values()) System.out.println(c);
public static AnsiColors.BitDepth 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 AnsiColors.BitDepth of(int bits)