public static enum Ansi.BackgroundColor extends Enum<Ansi.BackgroundColor> implements Ansi.Parameter
| Enum Constant and Description |
|---|
BLACK |
BLUE |
BRIGHT_BLACK |
BRIGHT_BLUE |
BRIGHT_CYAN |
BRIGHT_GREEN |
BRIGHT_MAGENTA |
BRIGHT_RED |
BRIGHT_WHITE |
BRIGHT_YELLOW |
CYAN |
GREEN |
MAGENTA |
RED |
WHITE |
YELLOW |
| Modifier and Type | Method and Description |
|---|---|
int |
code() |
static Ansi.BackgroundColor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Ansi.BackgroundColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Ansi.BackgroundColor BLACK
public static final Ansi.BackgroundColor RED
public static final Ansi.BackgroundColor GREEN
public static final Ansi.BackgroundColor YELLOW
public static final Ansi.BackgroundColor BLUE
public static final Ansi.BackgroundColor MAGENTA
public static final Ansi.BackgroundColor CYAN
public static final Ansi.BackgroundColor WHITE
public static final Ansi.BackgroundColor BRIGHT_BLACK
public static final Ansi.BackgroundColor BRIGHT_RED
public static final Ansi.BackgroundColor BRIGHT_GREEN
public static final Ansi.BackgroundColor BRIGHT_YELLOW
public static final Ansi.BackgroundColor BRIGHT_BLUE
public static final Ansi.BackgroundColor BRIGHT_MAGENTA
public static final Ansi.BackgroundColor BRIGHT_CYAN
public static final Ansi.BackgroundColor BRIGHT_WHITE
public static Ansi.BackgroundColor[] values()
for (Ansi.BackgroundColor c : Ansi.BackgroundColor.values()) System.out.println(c);
public static Ansi.BackgroundColor 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 int code()
code in interface Ansi.ParameterCopyright © 2022. All rights reserved.