Enum Class Rectangle2DDirection
- All Implemented Interfaces:
Serializable,Comparable<Rectangle2DDirection>,Constable
Specifies which element of a query is returned by
AbstractConstraintsTreeSpatialMap.firstEntry() and the like.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStart with element having the least y1 valueStart with element having the least x1 valueStart with element having the greatest x2 valueStart with element having the greatest y2 value -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if the direction implies the greatest elements come first Implementors may find this useful for querying internal indices properly.static Rectangle2DDirectionReturns the enum constant of this class with the specified name.static Rectangle2DDirection[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEFTMOST
Start with element having the least x1 value -
RIGHTMOST
Start with element having the greatest x2 value -
BOTTOMMOST
Start with element having the least y1 value -
TOPMOST
Start with element having the greatest y2 value
-
-
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
-
isReversed
public boolean isReversed()Check if the direction implies the greatest elements come first Implementors may find this useful for querying internal indices properly.- Returns:
- true if reversed
-