public enum AnsiBackground extends Enum<AnsiBackground> implements AnsiElement
来自Spring Boot
Enum Constant and Description |
---|
BLACK
黑色
|
BLUE
蓝
|
BRIGHT_BLACK
亮黑
|
BRIGHT_BLUE
亮蓝
|
BRIGHT_CYAN
亮青
|
BRIGHT_GREEN
亮绿
|
BRIGHT_MAGENTA
亮品红
|
BRIGHT_RED
亮红
|
BRIGHT_WHITE
亮白
|
BRIGHT_YELLOW
亮黄
|
CYAN
青
|
DEFAULT
默认背景色
|
GREEN
绿
|
MAGENTA
品红
|
RED
红
|
WHITE
白
|
YELLOW
黄
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
获取ANSI颜色代码
|
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 DEFAULT
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 MAGENTA
public static final AnsiBackground CYAN
public static final AnsiBackground WHITE
public static final AnsiBackground BRIGHT_BLACK
public static final AnsiBackground BRIGHT_RED
public static final AnsiBackground BRIGHT_GREEN
public static final AnsiBackground BRIGHT_YELLOW
public static final AnsiBackground BRIGHT_BLUE
public static final AnsiBackground BRIGHT_MAGENTA
public static final AnsiBackground BRIGHT_CYAN
public static final AnsiBackground BRIGHT_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 int getCode()
getCode
in interface AnsiElement
public String toString()
toString
in interface AnsiElement
toString
in class Enum<AnsiBackground>
Copyright © 2024. All rights reserved.