public enum TextAnchor extends java.lang.Enum<TextAnchor>
| Enum Constant and Description |
|---|
BASELINE_CENTER
Baseline/center.
|
BASELINE_LEFT
Baseline/left.
|
BASELINE_RIGHT
Baseline/right.
|
BOTTOM_CENTER
Bottom/center.
|
BOTTOM_LEFT
Bottom/left.
|
BOTTOM_RIGHT
Bottom/right.
|
CENTER
Middle/center.
|
CENTER_LEFT
Middle/left.
|
CENTER_RIGHT
Middle/right.
|
HALF_ASCENT_CENTER
Half-ascent/center.
|
HALF_ASCENT_LEFT
Half-ascent/left.
|
HALF_ASCENT_RIGHT
Half-ascent/right.
|
TOP_CENTER
Top/center.
|
TOP_LEFT
Top/left.
|
TOP_RIGHT
Top/right.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBaseline()
Returns
true if this anchor is at the baseline level of
the text bounds, and false otherwise. |
boolean |
isBottom()
Returns
true if this anchor is at the bottom of
the text bounds, and false otherwise. |
boolean |
isHalfAscent()
Returns
true if this anchor is at the half-ascent level of
the text bounds, and false otherwise. |
boolean |
isHalfHeight()
Returns
true if this anchor is at the half-height level of
the text bounds, and false otherwise. |
boolean |
isHorizontalCenter()
Returns
true if this anchor is horizontally at the center
of the text bounds, and false otherwise. |
boolean |
isLeft()
Returns
true if this anchor is at the left side of the
text bounds, and false otherwise. |
boolean |
isRight()
Returns
true if this anchor is at the right side of the
text bounds, and false otherwise. |
boolean |
isTop()
Returns
true if this anchor is at the top of the
text bounds, and false otherwise. |
java.lang.String |
toString()
Returns a string representing the object.
|
static TextAnchor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextAnchor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextAnchor TOP_LEFT
public static final TextAnchor TOP_CENTER
public static final TextAnchor TOP_RIGHT
public static final TextAnchor HALF_ASCENT_LEFT
public static final TextAnchor HALF_ASCENT_CENTER
public static final TextAnchor HALF_ASCENT_RIGHT
public static final TextAnchor CENTER_LEFT
public static final TextAnchor CENTER
public static final TextAnchor CENTER_RIGHT
public static final TextAnchor BASELINE_LEFT
public static final TextAnchor BASELINE_CENTER
public static final TextAnchor BASELINE_RIGHT
public static final TextAnchor BOTTOM_LEFT
public static final TextAnchor BOTTOM_CENTER
public static final TextAnchor BOTTOM_RIGHT
public static TextAnchor[] values()
for (TextAnchor c : TextAnchor.values()) System.out.println(c);
public static TextAnchor 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 this anchor is at the left side of the
text bounds, and false otherwise.public boolean isHorizontalCenter()
true if this anchor is horizontally at the center
of the text bounds, and false otherwise.public boolean isRight()
true if this anchor is at the right side of the
text bounds, and false otherwise.public boolean isTop()
true if this anchor is at the top of the
text bounds, and false otherwise.public boolean isHalfAscent()
true if this anchor is at the half-ascent level of
the text bounds, and false otherwise.public boolean isHalfHeight()
true if this anchor is at the half-height level of
the text bounds, and false otherwise.public boolean isBaseline()
true if this anchor is at the baseline level of
the text bounds, and false otherwise.public boolean isBottom()
true if this anchor is at the bottom of
the text bounds, and false otherwise.public java.lang.String toString()
toString in class java.lang.Enum<TextAnchor>