| Enum Constant and Description |
|---|
BOTTOM_CENTER
The middle of a rectangle at the bottom.
|
BOTTOM_LEFT
The bottom-left corner of a rectangle.
|
BOTTOM_RIGHT
The bottom-right corner of a rectangle.
|
CENTER
The center of a rectangle.
|
CENTER_LEFT
The middle of a rectangle at the left side.
|
CENTER_RIGHT
The middle of a rectangle at the right side.
|
TOP_CENTER
The middle of a rectangle at the top.
|
TOP_LEFT
The top-left corner of a rectangle.
|
TOP_RIGHT
The top-right corner of a rectangle.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBottom()
Returns
true if the reference point is at the bottom, and
false otherwise. |
boolean |
isHorizontalCenter()
Returns
true if the reference point is at the center
horizontally, and false otherwise. |
boolean |
isLeft()
Returns
true if the reference point is at the left, and
false otherwise. |
boolean |
isRight()
Returns
true if the reference point is at the right, and
false otherwise. |
boolean |
isTop()
Returns
true if the reference point is at the top, and
false otherwise. |
boolean |
isVerticalCenter()
Returns
true if the reference point is at the center
vertically, and false otherwise. |
static RefPt2D |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RefPt2D[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RefPt2D TOP_CENTER
public static final RefPt2D CENTER_LEFT
public static final RefPt2D CENTER_RIGHT
public static final RefPt2D BOTTOM_LEFT
public static final RefPt2D BOTTOM_CENTER
public static final RefPt2D BOTTOM_RIGHT
public static RefPt2D[] values()
for (RefPt2D c : RefPt2D.values()) System.out.println(c);
public static RefPt2D valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isLeft()
true if the reference point is at the left, and
false otherwise.public boolean isRight()
true if the reference point is at the right, and
false otherwise.public boolean isHorizontalCenter()
true if the reference point is at the center
horizontally, and false otherwise.public boolean isTop()
true if the reference point is at the top, and
false otherwise.public boolean isBottom()
true if the reference point is at the bottom, and
false otherwise.public boolean isVerticalCenter()
true if the reference point is at the center
vertically, and false otherwise.