Package org.aesh.terminal.utils
Enum ANSIBuilder.TextType
- All Implemented Interfaces:
Serializable,Comparable<ANSIBuilder.TextType>,java.lang.constant.Constable
- Enclosing class:
ANSIBuilder
Enumeration of ANSI text style/type codes.
-
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 style.Turn off blink text style.Bold text style.Turn off bold text style.Concealed (hidden) text style.Turn off conceal text style.Crossed-out (strikethrough) text style.Turn off crossed-out text style.Default text style.Faint (dim) text style.Inverted (reverse video) text style.Turn off invert text style.Italic text style.Turn off italic text style.Underlined text style.Double underline text style.Turn off underline text style. -
Method Summary
Modifier and TypeMethodDescriptionintvalue()Returns the ANSI code value for this text type.static ANSIBuilder.TextTypeReturns the enum constant of this type with the specified name.static ANSIBuilder.TextType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default text style. -
BOLD
Bold text style. -
FAINT
Faint (dim) text style. -
ITALIC
Italic text style. -
UNDERLINE
Underlined text style. -
BLINK
Blinking text style. -
INVERT
Inverted (reverse video) text style. -
CONCEAL
Concealed (hidden) text style. -
CROSSED_OUT
Crossed-out (strikethrough) text style. -
UNDERLINE_DOUBLE
Double underline text style. -
BOLD_OFF
Turn off bold text style. -
ITALIC_OFF
Turn off italic text style. -
UNDERLINE_OFF
Turn off underline text style. -
BLINK_OFF
Turn off blink text style. -
INVERT_OFF
Turn off invert text style. -
CONCEAL_OFF
Turn off conceal text style. -
CROSSED_OUT_OFF
Turn off crossed-out text style.
-
-
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
-
value
public int value()Returns the ANSI code value for this text type.- Returns:
- the text type ANSI code
-