Package com.xebisco.yield
Enum Class ObjectAnchor
- All Implemented Interfaces:
Serializable,Comparable<ObjectAnchor>,Constable
Enum representing different object anchors for entities. Used for rendering.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the center of an object.Represents the east side of an object.Represents the north side of an object.Represents the northeast corner of an object.Represents the northwest corner of an object.Represents the south side of an object.Represents the southeast corner of an object.Represents the southwest corner of an object.Represents the west side of an object. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectAnchorReturns the enum constant of this class with the specified name.static ObjectAnchor[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CENTER
Represents the center of an object. -
WEST
Represents the west side of an object. -
EAST
Represents the east side of an object. -
NORTH
Represents the north side of an object. -
SOUTH
Represents the south side of an object. -
NORTHWEST
Represents the northwest corner of an object. -
NORTHEAST
Represents the northeast corner of an object. -
SOUTHWEST
Represents the southwest corner of an object. -
SOUTHEAST
Represents the southeast corner of an object.
-
-
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
-