Package org.aesh.terminal.formatting
Enum CharacterType
- All Implemented Interfaces:
Serializable,Comparable<CharacterType>,java.lang.constant.Constable
Define what kind of character type to display
- Author:
- Ståle W. Pedersen
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBlinking text.Bold or increased intensity text.Hidden or concealed text.Crossed-out or strikethrough text.Faint or decreased intensity text.Inverted foreground and background colors.Italic text style.Underlined text. -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()Returns the ANSI escape code value for this character type.static CharacterTypeReturns the enum constant of this type with the specified name.static CharacterType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BOLD
Bold or increased intensity text. -
FAINT
Faint or decreased intensity text. -
ITALIC
Italic text style. -
UNDERLINE
Underlined text. -
BLINK
Blinking text. -
INVERT
Inverted foreground and background colors. -
CONCEAL
Hidden or concealed text. -
CROSSED_OUT
Crossed-out or strikethrough text.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()Returns the ANSI escape code value for this character type.- Returns:
- the ANSI escape code value
-