public final class TextAnchor extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static TextAnchor |
BASELINE_CENTER
Baseline/center.
|
static TextAnchor |
BASELINE_LEFT
Baseline/left.
|
static TextAnchor |
BASELINE_RIGHT
Baseline/right.
|
static TextAnchor |
BOTTOM_CENTER
Bottom/center.
|
static TextAnchor |
BOTTOM_LEFT
Bottom/left.
|
static TextAnchor |
BOTTOM_RIGHT
Bottom/right.
|
static TextAnchor |
CENTER
Middle/center.
|
static TextAnchor |
CENTER_LEFT
Middle/left.
|
static TextAnchor |
CENTER_RIGHT
Middle/right.
|
static TextAnchor |
HALF_ASCENT_CENTER
Half-ascent/center.
|
static TextAnchor |
HALF_ASCENT_LEFT
Half-ascent/left.
|
static TextAnchor |
HALF_ASCENT_RIGHT
Half-ascent/right.
|
static TextAnchor |
TOP_CENTER
Top/center.
|
static TextAnchor |
TOP_LEFT
Top/left.
|
static TextAnchor |
TOP_RIGHT
Top/right.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Returns
true if this object is equal to the specified
object, and false otherwise. |
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isBaseline()
Returns
true if the anchor is a baseline anchor, and
false otherwise. |
boolean |
isBottom()
Returns
true if the anchor is a bottom anchor, and
false otherwise. |
boolean |
isHalfAscent()
Returns
true if the anchor is a half-ascent anchor, and
false otherwise. |
boolean |
isHorizontalCenter()
Returns
true if the anchor is a center anchor, and
false otherwise. |
boolean |
isLeft()
Returns
true if the anchor is a left-side anchor, and
false otherwise. |
boolean |
isRight()
Returns
true if the anchor is a right-side anchor, and
false otherwise. |
boolean |
isTop()
Returns
true if the anchor is a top anchor, and
false otherwise. |
boolean |
isVerticalCenter()
Returns
true if the anchor is a half-ascent anchor, and
false otherwise. |
String |
toString()
Returns a string representing the object.
|
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 boolean isLeft()
true
if the anchor is a left-side anchor, and
false
otherwise.public boolean isRight()
true
if the anchor is a right-side anchor, and
false
otherwise.public boolean isHorizontalCenter()
true
if the anchor is a center anchor, and
false
otherwise.public boolean isTop()
true
if the anchor is a top anchor, and
false
otherwise.public boolean isBottom()
true
if the anchor is a bottom anchor, and
false
otherwise.public boolean isBaseline()
true
if the anchor is a baseline anchor, and
false
otherwise.public boolean isHalfAscent()
true
if the anchor is a half-ascent anchor, and
false
otherwise.public boolean isVerticalCenter()
true
if the anchor is a half-ascent anchor, and
false
otherwise.public String toString()
public boolean equals(Object o)
true
if this object is equal to the specified
object, and false
otherwise.Copyright © 2001–2017 JFree.org. All rights reserved.