Enum Class Orientation
- All Implemented Interfaces:
Serializable
,Comparable<Orientation>
,Constable
Represents the way to orient an object in relation to given coordinates.
- Version:
- 0.1-Alpha-SNAPSHOT
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enum used for how to align horizontallystatic enum
Enum used for how to align verticallyNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAlign the object to the bottom, centered horizontallyAlign the object to the bottom leftAlign the object to the bottom rightCenter the object (horizontally and vertically) on the specified coordinateLeft align the object, centered verticallyRight align the object, centered verticallyAlign the object to the top, centered horizontallyAlign the object to the top leftAlign the object to the top right -
Field Summary
Modifier and TypeFieldDescriptionprivate final Orientation.Horizontal
The horizontal alignment to be usedprivate final Orientation.Vertical
The vertical alignment to be used -
Constructor Summary
ModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionstatic Orientation
Returns the enum constant of this class with the specified name.static Orientation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.vertical()
-
Enum Constant Details
-
TOP_CENTER
Align the object to the top, centered horizontally -
LEFT_CENTER
Left align the object, centered vertically -
CENTER
Center the object (horizontally and vertically) on the specified coordinate -
RIGHT_CENTER
Right align the object, centered vertically -
BOTTOM_CENTER
Align the object to the bottom, centered horizontally -
TOP_LEFT
Align the object to the top left -
TOP_RIGHT
Align the object to the top right -
BOTTOM_LEFT
Align the object to the bottom left -
BOTTOM_RIGHT
Align the object to the bottom right
-
-
Field Details
-
ver
The vertical alignment to be used -
hor
The horizontal alignment to be used
-
-
Constructor Details
-
Orientation
- Parameters:
ver
- How to align verticallyhor
- How to align horizontally
-
-
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
-
vertical
- Returns:
- The vertical alignment to be used
-
horizontal
- Returns:
- The horizontal alignment to be used
-