- All Implemented Interfaces:
Serializable,Comparable<RefPt2D>,Constable
An enumeration of reference points within a rectangle. These reference
points are used to place titles, legends and other labels.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe middle of a rectangle at the bottom.The bottom-left corner of a rectangle.The bottom-right corner of a rectangle.The center of a rectangle.The middle of a rectangle at the left side.The middle of a rectangle at the right side.The middle of a rectangle at the top.The top-left corner of a rectangle.The top-right corner of a rectangle. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisBottom()Returnstrueif the reference point is at the bottom, andfalseotherwise.booleanReturnstrueif the reference point is at the center horizontally, andfalseotherwise.booleanisLeft()Returnstrueif the reference point is at the left, andfalseotherwise.booleanisRight()Returnstrueif the reference point is at the right, andfalseotherwise.booleanisTop()Returnstrueif the reference point is at the top, andfalseotherwise.booleanReturnstrueif the reference point is at the center vertically, andfalseotherwise.static RefPt2DReturns the enum constant of this class with the specified name.static RefPt2D[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOP_LEFT
The top-left corner of a rectangle. -
TOP_CENTER
The middle of a rectangle at the top. -
TOP_RIGHT
The top-right corner of a rectangle. -
CENTER_LEFT
The middle of a rectangle at the left side. -
CENTER
The center of a rectangle. -
CENTER_RIGHT
The middle of a rectangle at the right side. -
BOTTOM_LEFT
The bottom-left corner of a rectangle. -
BOTTOM_CENTER
The middle of a rectangle at the bottom. -
BOTTOM_RIGHT
The bottom-right corner of a rectangle.
-
-
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
-
isLeft
Returnstrueif the reference point is at the left, andfalseotherwise.- Returns:
- A boolean.
-
isRight
Returnstrueif the reference point is at the right, andfalseotherwise.- Returns:
- A boolean.
-
isHorizontalCenter
Returnstrueif the reference point is at the center horizontally, andfalseotherwise.- Returns:
- A boolean.
-
isTop
Returnstrueif the reference point is at the top, andfalseotherwise.- Returns:
- A boolean.
-
isBottom
Returnstrueif the reference point is at the bottom, andfalseotherwise.- Returns:
- A boolean.
-
isVerticalCenter
Returnstrueif the reference point is at the center vertically, andfalseotherwise.- Returns:
- A boolean.
-