Enum Class TitlePosition
- All Implemented Interfaces:
Serializable
,Comparable<TitlePosition>
,Constable
An enum used for Title Position (for Titled Borders)
- Since:
- Alpha v.0.2
- Version:
- Alpha v.0.3
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPosition the title above the border's bottom line.Position the title above the border's top line.Position the title below the border's bottom line.Position the title below the border's top line.Position the title in the middle of the border's bottom line.Position the title in the middle of the border's top line. -
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The value of the Title Position (used in Titled Border class) -
Constructor Summary
ModifierConstructorDescriptionprivate
TitlePosition
(int value) Constructs a new Title Position with the given value -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
static TitlePosition
Returns the enum constant of this class with the specified name.static TitlePosition[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ABOVE_TOP
Position the title above the border's top line. -
TOP
Position the title in the middle of the border's top line. -
BELOW_TOP
Position the title below the border's top line. -
ABOVE_BOTTOM
Position the title above the border's bottom line. -
BOTTOM
Position the title in the middle of the border's bottom line. -
BELOW_BOTTOM
Position the title below the border's bottom line.
-
-
Field Details
-
value
private final int valueThe value of the Title Position (used in Titled Border class)
-
-
Constructor Details
-
TitlePosition
private TitlePosition(int value) Constructs a new Title Position with the given value- Parameters:
value
- The value for this Title Position
-
-
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
-
getValue
public int getValue()- Returns:
- The value of the Title Position (used in Titled Border class)
-