Enum Class Enums.Position
- All Implemented Interfaces:
ItemMeta
,Serializable
,Comparable<Enums.Position>
,Constable
- Enclosing interface:
Enums
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Enums.Position
boolean
isBottom()
boolean
isCorner()
boolean
boolean
isLeft()
boolean
isRight()
boolean
isTop()
boolean
static Enums.Position[]
static Enums.Position[]
static Enums.Position[]
static Enums.Position[]
toString()
static Enums.Position
Returns the enum constant of this class with the specified name.static Enums.Position[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEFT
-
RIGHT
-
TOP
-
TOP_LEFT
-
TOP_RIGHT
-
BOTTOM
-
BOTTOM_LEFT
-
BOTTOM_RIGHT
-
CENTER
-
-
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
-
isHcenter
public boolean isHcenter() -
isVcenter
public boolean isVcenter() -
isCorner
public boolean isCorner() -
isRight
public boolean isRight() -
isLeft
public boolean isLeft() -
isTop
public boolean isTop() -
isBottom
public boolean isBottom() -
getShortCode
- Specified by:
getShortCode
in interfaceItemMeta
-
toString
- Overrides:
toString
in classEnum<Enums.Position>
-
fromCode
-
leftRight
-
leftCenterRight
-
topBottom
-
leftRightTopBottom
-