Package cn.mapway.util.console
Enum AnsiColor
- java.lang.Object
-
- java.lang.Enum<AnsiColor>
-
- cn.mapway.util.console.AnsiColor
-
- All Implemented Interfaces:
Serializable,Comparable<AnsiColor>
public enum AnsiColor extends Enum<AnsiColor>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()static AnsiColorvalueOf(String name)Returns the enum constant of this type with the specified name.static AnsiColor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STYLE_RESET
public static final AnsiColor STYLE_RESET
-
STYLE_HIGH_INTENSITY
public static final AnsiColor STYLE_HIGH_INTENSITY
-
STYLE_LOW_INTENSITY
public static final AnsiColor STYLE_LOW_INTENSITY
-
STYLE_ITALIC
public static final AnsiColor STYLE_ITALIC
-
STYLE_UNDERLINE
public static final AnsiColor STYLE_UNDERLINE
-
STYLE_BLINK
public static final AnsiColor STYLE_BLINK
-
STYLE_RAPID_BLINK
public static final AnsiColor STYLE_RAPID_BLINK
-
STYLE_REVERSE_VIDEO
public static final AnsiColor STYLE_REVERSE_VIDEO
-
STYLE_INVISIBLE_TEXT
public static final AnsiColor STYLE_INVISIBLE_TEXT
-
FG_BLACK
public static final AnsiColor FG_BLACK
-
FG_RED
public static final AnsiColor FG_RED
-
FG_GREEN
public static final AnsiColor FG_GREEN
-
FG_YELLOW
public static final AnsiColor FG_YELLOW
-
FG_BLUE
public static final AnsiColor FG_BLUE
-
FG_MAGENTA
public static final AnsiColor FG_MAGENTA
-
FG_CYAN
public static final AnsiColor FG_CYAN
-
FG_WHITE
public static final AnsiColor FG_WHITE
-
BG_BLACK
public static final AnsiColor BG_BLACK
-
BG_RED
public static final AnsiColor BG_RED
-
BG_GREEN
public static final AnsiColor BG_GREEN
-
BG_YELLOW
public static final AnsiColor BG_YELLOW
-
BG_BLUE
public static final AnsiColor BG_BLUE
-
BG_MAGENTA
public static final AnsiColor BG_MAGENTA
-
BG_CYAN
public static final AnsiColor BG_CYAN
-
BG_WHITE
public static final AnsiColor BG_WHITE
-
-
Method Detail
-
values
public static AnsiColor[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AnsiColor c : AnsiColor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnsiColor valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public String getCode()
-
-