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 Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringgetAnsiControlCode(int code) Gets the ANSI control code for disabling a decorationGets the ANSI control code for enabling a decorationtoString()static BasicDecorationReturns 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:
toStringin classEnum<BasicDecoration>
-
getAnsiDecorationEnabledControlCode
Description copied from interface:AnsiDecorationProviderGets the ANSI control code for enabling a decoration- Specified by:
getAnsiDecorationEnabledControlCodein interfaceAnsiDecorationProvider- Returns:
- Control code
-
getAnsiDecorationDisabledControlCode
Description copied from interface:AnsiDecorationProviderGets the ANSI control code for disabling a decoration- Specified by:
getAnsiDecorationDisabledControlCodein interfaceAnsiDecorationProvider- Returns:
- Control Code
-
getAnsiControlCode
-