Package tigase.util.ui.console
Enum AnsiColor
- java.lang.Object
-
- java.lang.Enum<AnsiColor>
-
- tigase.util.ui.console.AnsiColor
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isCompatible()
java.lang.String
toString()
static AnsiColor
valueOf(java.lang.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
-
RESET
public static final AnsiColor RESET
-
BLACK
public static final AnsiColor BLACK
-
RED
public static final AnsiColor RED
-
GREEN
public static final AnsiColor GREEN
-
YELLOW
public static final AnsiColor YELLOW
-
BLUE
public static final AnsiColor BLUE
-
MAGENTA
public static final AnsiColor MAGENTA
-
CYAN
public static final AnsiColor CYAN
-
WHITE
public static final AnsiColor WHITE
-
BLACK_BRIGHT
public static final AnsiColor BLACK_BRIGHT
-
RED_BRIGHT
public static final AnsiColor RED_BRIGHT
-
GREEN_BRIGHT
public static final AnsiColor GREEN_BRIGHT
-
YELLOW_BRIGHT
public static final AnsiColor YELLOW_BRIGHT
-
BLUE_BRIGHT
public static final AnsiColor BLUE_BRIGHT
-
MAGENTA_BRIGHT
public static final AnsiColor MAGENTA_BRIGHT
-
CYAN_BRIGHT
public static final AnsiColor CYAN_BRIGHT
-
WHITE_BRIGHT
public static final AnsiColor WHITE_BRIGHT
-
BLACK_BOLD
public static final AnsiColor BLACK_BOLD
-
RED_BOLD
public static final AnsiColor RED_BOLD
-
GREEN_BOLD
public static final AnsiColor GREEN_BOLD
-
YELLOW_BOLD
public static final AnsiColor YELLOW_BOLD
-
BLUE_BOLD
public static final AnsiColor BLUE_BOLD
-
MAGENTA_BOLD
public static final AnsiColor MAGENTA_BOLD
-
CYAN_BOLD
public static final AnsiColor CYAN_BOLD
-
WHITE_BOLD
public static final AnsiColor WHITE_BOLD
-
BLACK_BOLD_BRIGHT
public static final AnsiColor BLACK_BOLD_BRIGHT
-
RED_BOLD_BRIGHT
public static final AnsiColor RED_BOLD_BRIGHT
-
GREEN_BOLD_BRIGHT
public static final AnsiColor GREEN_BOLD_BRIGHT
-
YELLOW_BOLD_BRIGHT
public static final AnsiColor YELLOW_BOLD_BRIGHT
-
BLUE_BOLD_BRIGHT
public static final AnsiColor BLUE_BOLD_BRIGHT
-
MAGENTA_BOLD_BRIGHT
public static final AnsiColor MAGENTA_BOLD_BRIGHT
-
CYAN_BOLD_BRIGHT
public static final AnsiColor CYAN_BOLD_BRIGHT
-
WHITE_BOLD_BRIGHT
public static final AnsiColor WHITE_BOLD_BRIGHT
-
-
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(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isCompatible
public static boolean isCompatible()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<AnsiColor>
-
-