Package org.jfree.chart.ui
Class TextAnchor
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
FieldsModifier and TypeFieldDescriptionstatic final TextAnchorBaseline/center.static final TextAnchorBaseline/left.static final TextAnchorBaseline/right.static final TextAnchorBottom/center.static final TextAnchorBottom/left.static final TextAnchorBottom/right.static final TextAnchorMiddle/center.static final TextAnchorMiddle/left.static final TextAnchorMiddle/right.static final TextAnchorHalf-ascent/center.static final TextAnchorHalf-ascent/left.static final TextAnchorHalf-ascent/right.static final TextAnchorTop/center.static final TextAnchorTop/left.static final TextAnchorTop/right. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif this object is equal to the specified object, andfalseotherwise.inthashCode()Returns a hash code value for the object.booleanReturnstrueif the anchor is a baseline anchor, andfalseotherwise.booleanisBottom()Returnstrueif the anchor is a bottom anchor, andfalseotherwise.booleanReturnstrueif the anchor is a half-ascent anchor, andfalseotherwise.booleanReturnstrueif the anchor is a center anchor, andfalseotherwise.booleanisLeft()Returnstrueif the anchor is a left-side anchor, andfalseotherwise.booleanisRight()Returnstrueif the anchor is a right-side anchor, andfalseotherwise.booleanisTop()Returnstrueif the anchor is a top anchor, andfalseotherwise.booleanReturnstrueif the anchor is a half-ascent anchor, andfalseotherwise.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
Returnstrueif the anchor is a left-side anchor, andfalseotherwise.- Returns:
- A boolean.
-
isRight
Returnstrueif the anchor is a right-side anchor, andfalseotherwise.- Returns:
- A boolean.
-
isHorizontalCenter
Returnstrueif the anchor is a center anchor, andfalseotherwise.- Returns:
- A boolean.
-
isTop
Returnstrueif the anchor is a top anchor, andfalseotherwise.- Returns:
- A boolean.
-
isBottom
Returnstrueif the anchor is a bottom anchor, andfalseotherwise.- Returns:
- A boolean.
-
isBaseline
Returnstrueif the anchor is a baseline anchor, andfalseotherwise.- Returns:
- A boolean.
-
isHalfAscent
Returnstrueif the anchor is a half-ascent anchor, andfalseotherwise.- Returns:
- A boolean.
-
isVerticalCenter
Returnstrueif the anchor is a half-ascent anchor, andfalseotherwise.- Returns:
- A boolean.
-
toString
Returns a string representing the object. -
equals
Returnstrueif this object is equal to the specified object, andfalseotherwise. -
hashCode
Returns a hash code value for the object.
-