Serializable
, Comparable<SGR>
public enum SGR extends Enum<SGR>
Enum Constant | Description |
---|---|
BLINK |
Text will blink on the screen by alternating the foreground color between the real foreground color and the
background color.
|
BOLD |
Bold text mode.
|
BORDERED |
Draws a border around the text.
|
CIRCLED |
Draws a circle around the text.
|
CROSSED_OUT |
Draws a horizontal line through the text.
|
FRAKTUR |
I have no idea, exotic extension, please send me a reference screen shots!
|
ITALIC |
Italic (cursive) text mode.
|
REVERSE |
Reverse text mode, will flip the foreground and background colors while active
|
UNDERLINE |
Draws a horizontal line under the text.
|
Modifier and Type | Method | Description |
---|---|---|
static SGR |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static SGR[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SGR BOLD
public static final SGR REVERSE
public static final SGR UNDERLINE
public static final SGR BLINK
public static final SGR BORDERED
public static final SGR FRAKTUR
public static final SGR CROSSED_OUT
public static final SGR CIRCLED
public static final SGR ITALIC
public static SGR[] values()
for (SGR c : SGR.values()) System.out.println(c);
public static SGR 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 nullCopyright © 2020. All rights reserved.