Package net.risingworld.api.ui.style
Enum Class TextAnchor
- All Implemented Interfaces:
Serializable
,Comparable<TextAnchor>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionText is anchored in lower left centerText is anchored in lower left cornerText is anchored in lower right cornerText is anchored in centerText is anchored in middle left centerText is anchored in middle right centerText is anchored in upper centerDefault: Text is anchored in upper left cornerText is anchored in upper right corner -
Method Summary
Modifier and TypeMethodDescriptionstatic TextAnchor
get
(int ordinal) Gets an enum from the ordinal value.static TextAnchor
Returns the enum constant of this class with the specified name.static TextAnchor[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UpperLeft
Default: Text is anchored in upper left corner -
UpperCenter
Text is anchored in upper center -
UpperRight
Text is anchored in upper right corner -
MiddleLeft
Text is anchored in middle left center -
MiddleCenter
Text is anchored in center -
MiddleRight
Text is anchored in middle right center -
LowerLeft
Text is anchored in lower left corner -
LowerCenter
Text is anchored in lower left center -
LowerRight
Text is anchored in lower right corner
-
-
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
-
get
Gets an enum from the ordinal value.- Parameters:
ordinal
- the ordinal value (index).- Returns:
- the according enum.
-