public enum ColorAttribute extends java.lang.Enum<ColorAttribute>
Color.| Enum Constant and Description |
|---|
BLINK |
BOLD |
NORMAL |
REVERSE |
UNDERLINE |
| Modifier and Type | Field and Description |
|---|---|
private int |
value
the attribute value
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Returns the attribute value.
|
static ColorAttribute |
valueOf(int value)
Resolve the
ColorAttribute instance for the specified value. |
static ColorAttribute |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ColorAttribute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorAttribute NORMAL
public static final ColorAttribute BLINK
public static final ColorAttribute BOLD
public static final ColorAttribute UNDERLINE
public static final ColorAttribute REVERSE
public static ColorAttribute[] values()
for (ColorAttribute c : ColorAttribute.values()) System.out.println(c);
public static ColorAttribute 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 ColorAttribute valueOf(int value)
ColorAttribute instance for the specified value.value - The value to be resolved.ColorAttribute enum entry or NORMAL if not a valid value.public int getValue()