public static enum AnsiColors.BitDepth extends java.lang.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(java.lang.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
AnsiColorpublic static final AnsiColors.BitDepth EIGHT
Ansi8BitColorpublic static AnsiColors.BitDepth[] values()
for (AnsiColors.BitDepth c : AnsiColors.BitDepth.values()) System.out.println(c);
public static AnsiColors.BitDepth 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 static AnsiColors.BitDepth of(int bits)