java.lang.Object
org.jfree.chart.ui.TextAnchor
- All Implemented Interfaces:
Serializable
Used to indicate the position of an anchor point for a text string. This is
frequently used to align a string to a fixed point in some coordinate space.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TextAnchor
Baseline/center.static final TextAnchor
Baseline/left.static final TextAnchor
Baseline/right.static final TextAnchor
Bottom/center.static final TextAnchor
Bottom/left.static final TextAnchor
Bottom/right.static final TextAnchor
Middle/center.static final TextAnchor
Middle/left.static final TextAnchor
Middle/right.static final TextAnchor
Half-ascent/center.static final TextAnchor
Half-ascent/left.static final TextAnchor
Half-ascent/right.static final TextAnchor
Top/center.static final TextAnchor
Top/left.static final TextAnchor
Top/right. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if this object is equal to the specified object, andfalse
otherwise.int
hashCode()
Returns a hash code value for the object.boolean
Returnstrue
if the anchor is a baseline anchor, andfalse
otherwise.boolean
isBottom()
Returnstrue
if the anchor is a bottom anchor, andfalse
otherwise.boolean
Returnstrue
if the anchor is a half-ascent anchor, andfalse
otherwise.boolean
Returnstrue
if the anchor is a center anchor, andfalse
otherwise.boolean
isLeft()
Returnstrue
if the anchor is a left-side anchor, andfalse
otherwise.boolean
isRight()
Returnstrue
if the anchor is a right-side anchor, andfalse
otherwise.boolean
isTop()
Returnstrue
if the anchor is a top anchor, andfalse
otherwise.boolean
Returnstrue
if the anchor is a half-ascent anchor, andfalse
otherwise.toString()
Returns a string representing the object.
-
Field Details
-
TOP_LEFT
Top/left. -
TOP_CENTER
Top/center. -
TOP_RIGHT
Top/right. -
HALF_ASCENT_LEFT
Half-ascent/left. -
HALF_ASCENT_CENTER
Half-ascent/center. -
HALF_ASCENT_RIGHT
Half-ascent/right. -
CENTER_LEFT
Middle/left. -
CENTER
Middle/center. -
CENTER_RIGHT
Middle/right. -
BASELINE_LEFT
Baseline/left. -
BASELINE_CENTER
Baseline/center. -
BASELINE_RIGHT
Baseline/right. -
BOTTOM_LEFT
Bottom/left. -
BOTTOM_CENTER
Bottom/center. -
BOTTOM_RIGHT
Bottom/right.
-
-
Method Details
-
isLeft
public boolean isLeft()Returnstrue
if the anchor is a left-side anchor, andfalse
otherwise.- Returns:
- A boolean.
-
isRight
public boolean isRight()Returnstrue
if the anchor is a right-side anchor, andfalse
otherwise.- Returns:
- A boolean.
-
isHorizontalCenter
public boolean isHorizontalCenter()Returnstrue
if the anchor is a center anchor, andfalse
otherwise.- Returns:
- A boolean.
-
isTop
public boolean isTop()Returnstrue
if the anchor is a top anchor, andfalse
otherwise.- Returns:
- A boolean.
-
isBottom
public boolean isBottom()Returnstrue
if the anchor is a bottom anchor, andfalse
otherwise.- Returns:
- A boolean.
-
isBaseline
public boolean isBaseline()Returnstrue
if the anchor is a baseline anchor, andfalse
otherwise.- Returns:
- A boolean.
-
isHalfAscent
public boolean isHalfAscent()Returnstrue
if the anchor is a half-ascent anchor, andfalse
otherwise.- Returns:
- A boolean.
-
isVerticalCenter
public boolean isVerticalCenter()Returnstrue
if the anchor is a half-ascent anchor, andfalse
otherwise.- Returns:
- A boolean.
-
toString
Returns a string representing the object. -
equals
Returnstrue
if this object is equal to the specified object, andfalse
otherwise. -
hashCode
public int hashCode()Returns a hash code value for the object.
-