public enum AnsiFont extends Enum<AnsiFont> implements AnsiStyle
Enum Constant and Description |
---|
BOLD
粗体
|
FAINT
弱化
|
FAST_BLINK
快速闪烁
|
HIDDEN
前景隐藏
|
ITALIC
斜体
|
RESET
重置
|
RESET_BOLD
重置 粗体
|
RESET_FAINT
重置 弱化
|
RESET_FAST_BLINK
重置 快速闪烁
|
RESET_HIDDEN
重置 前景隐藏
|
RESET_ITALIC
重置 斜体
|
RESET_REVERSE_COLOR
重置 反色
|
RESET_SLOW_BLINK
重置 缓慢闪烁
|
RESET_STRIKETHROUGH
重置 删除线
|
RESET_UNDERLINE
重置 下划线
|
REVERSE_COLOR
反色
|
SLOW_BLINK
缓慢闪烁
|
STRIKETHROUGH
删除线
|
UNDERLINE
下划线
|
Modifier and Type | Method and Description |
---|---|
String |
getCode()
获取 SGR Code
|
String |
toString()
获取元素
|
static AnsiFont |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnsiFont[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnsiFont RESET
public static final AnsiFont BOLD
public static final AnsiFont FAINT
public static final AnsiFont ITALIC
public static final AnsiFont UNDERLINE
public static final AnsiFont SLOW_BLINK
public static final AnsiFont FAST_BLINK
public static final AnsiFont REVERSE_COLOR
public static final AnsiFont HIDDEN
public static final AnsiFont STRIKETHROUGH
public static final AnsiFont RESET_BOLD
public static final AnsiFont RESET_FAINT
public static final AnsiFont RESET_ITALIC
public static final AnsiFont RESET_UNDERLINE
public static final AnsiFont RESET_SLOW_BLINK
public static final AnsiFont RESET_FAST_BLINK
public static final AnsiFont RESET_REVERSE_COLOR
public static final AnsiFont RESET_HIDDEN
public static final AnsiFont RESET_STRIKETHROUGH
public static AnsiFont[] values()
for (AnsiFont c : AnsiFont.values()) System.out.println(c);
public static AnsiFont 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()
AnsiElement
toString
in interface AnsiElement
toString
in class Enum<AnsiFont>
Copyright © 2024. All rights reserved.