public enum AnsiColor extends Enum<AnsiColor> implements AnsiElement
Ansi colors.| Enum Constant and Description |
|---|
BLACK
Black ANSI color.
|
BLUE
Blue ANSI color.
|
BRIGHT_BLACK
High bntensty black ANSI color.
|
BRIGHT_BLUE
High bntensty blue ANSI color.
|
BRIGHT_CYAN
High bntensty cyan ANSI color.
|
BRIGHT_GREEN
High bntensty green ANSI color.
|
BRIGHT_MAGENTA
High bntensty magenta ANSI color.
|
BRIGHT_RED
High bntensty red ANSI color.
|
BRIGHT_WHITE
High bntensty white ANSI color.
|
BRIGHT_YELLOW
High bntensty yellow ANSI color.
|
CYAN
Cyan ANSI color.
|
DEFAULT
System default ANSI color.
|
GREEN
Green ANSI color.
|
MAGENTA
Magenta ANSI color.
|
RED
Red ANSI color.
|
WHITE
White ANSI color.
|
YELLOW
Yellow ANSI color.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
Overrides default
toString() method for AnsiElement instances,
which should returns element's code. |
static AnsiColor |
valueOf(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.
|
public static final AnsiColor DEFAULT
public static final AnsiColor BLACK
public static final AnsiColor RED
public static final AnsiColor GREEN
public static final AnsiColor YELLOW
public static final AnsiColor BLUE
public static final AnsiColor MAGENTA
public static final AnsiColor CYAN
public static final AnsiColor WHITE
public static final AnsiColor BRIGHT_BLACK
public static final AnsiColor BRIGHT_RED
public static final AnsiColor BRIGHT_GREEN
public static final AnsiColor BRIGHT_YELLOW
public static final AnsiColor BRIGHT_BLUE
public static final AnsiColor BRIGHT_MAGENTA
public static final AnsiColor BRIGHT_CYAN
public static final AnsiColor BRIGHT_WHITE
public static AnsiColor[] values()
for (AnsiColor c : AnsiColor.values()) System.out.println(c);
public static AnsiColor 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 String toString()
AnsiElementtoString() method for AnsiElement instances,
which should returns element's code.toString in interface AnsiElementtoString in class Enum<AnsiColor>Copyright © 2019 Appulse. All rights reserved.