Module com.github.rvesse.airline.io
Enum Class BasicDecoration
- All Implemented Interfaces:
AnsiDecorationProvider
,Serializable
,Comparable<BasicDecoration>
,Constable
Support for the basic ANSI decorations
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
getAnsiControlCode
(int code) Gets the ANSI control code for disabling a decorationGets the ANSI control code for enabling a decorationtoString()
static BasicDecoration
Returns the enum constant of this class with the specified name.static BasicDecoration[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOLD
-
FAINT
-
ITALIC
-
UNDERLINE
-
BLINK_SLOW
-
BLINK_RAPID
-
IMAGE_NEGATIVE
-
CONCEAL
-
STRIKE_THROUGH
-
-
Field Details
-
enableCode
private final int enableCode -
disableCode
private final int disableCode -
name
-
-
Constructor Details
-
BasicDecoration
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<BasicDecoration>
-
getAnsiDecorationEnabledControlCode
Description copied from interface:AnsiDecorationProvider
Gets the ANSI control code for enabling a decoration- Specified by:
getAnsiDecorationEnabledControlCode
in interfaceAnsiDecorationProvider
- Returns:
- Control code
-
getAnsiDecorationDisabledControlCode
Description copied from interface:AnsiDecorationProvider
Gets the ANSI control code for disabling a decoration- Specified by:
getAnsiDecorationDisabledControlCode
in interfaceAnsiDecorationProvider
- Returns:
- Control Code
-
getAnsiControlCode
-