- 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 TypeMethodDescriptionboolean
isBottom()
Returnstrue
if the reference point is at the bottom, andfalse
otherwise.boolean
Returnstrue
if the reference point is at the center horizontally, andfalse
otherwise.boolean
isLeft()
Returnstrue
if the reference point is at the left, andfalse
otherwise.boolean
isRight()
Returnstrue
if the reference point is at the right, andfalse
otherwise.boolean
isTop()
Returnstrue
if the reference point is at the top, andfalse
otherwise.boolean
Returnstrue
if the reference point is at the center vertically, andfalse
otherwise.static RefPt2D
Returns 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
Returnstrue
if the reference point is at the left, andfalse
otherwise.- Returns:
- A boolean.
-
isRight
Returnstrue
if the reference point is at the right, andfalse
otherwise.- Returns:
- A boolean.
-
isHorizontalCenter
Returnstrue
if the reference point is at the center horizontally, andfalse
otherwise.- Returns:
- A boolean.
-
isTop
Returnstrue
if the reference point is at the top, andfalse
otherwise.- Returns:
- A boolean.
-
isBottom
Returnstrue
if the reference point is at the bottom, andfalse
otherwise.- Returns:
- A boolean.
-
isVerticalCenter
Returnstrue
if the reference point is at the center vertically, andfalse
otherwise.- Returns:
- A boolean.
-