public enum AnsiBackground extends Enum<AnsiBackground> implements AnsiColor
| Enum Constant and Description |
|---|
BLACK
黑色
|
BLUE
蓝色
|
CYAN
青色
|
DEFAULT
默认
|
GLOSS_BLACK
亮黑色 (灰)
|
GLOSS_BLUE
亮蓝色
|
GLOSS_CYAN
亮青色
|
GLOSS_GREEN
亮绿色
|
GLOSS_PURPLE
亮紫色
|
GLOSS_RED
亮红色
|
GLOSS_WHITE
亮白色
|
GLOSS_YELLOW
亮黄色
|
GREEN
绿色
|
PURPLE
紫色
|
RED
红色
|
WHITE
白色
|
YELLOW
黄色
|
| Modifier and Type | Field and Description |
|---|---|
int |
code
颜色码
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
获取 SGR Code
|
String |
toString()
获取元素
|
static AnsiBackground |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnsiBackground[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnsiBackground BLACK
public static final AnsiBackground RED
public static final AnsiBackground GREEN
public static final AnsiBackground YELLOW
public static final AnsiBackground BLUE
public static final AnsiBackground PURPLE
public static final AnsiBackground CYAN
public static final AnsiBackground WHITE
public static final AnsiBackground DEFAULT
public static final AnsiBackground GLOSS_BLACK
public static final AnsiBackground GLOSS_RED
public static final AnsiBackground GLOSS_GREEN
public static final AnsiBackground GLOSS_YELLOW
public static final AnsiBackground GLOSS_BLUE
public static final AnsiBackground GLOSS_PURPLE
public static final AnsiBackground GLOSS_CYAN
public static final AnsiBackground GLOSS_WHITE
public static AnsiBackground[] values()
for (AnsiBackground c : AnsiBackground.values()) System.out.println(c);
public static AnsiBackground 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 in interface AnsiElementtoString in class Enum<AnsiBackground>Copyright © 2024. All rights reserved.