org.jfree.ui
Class TextAnchor

java.lang.Object
  extended byorg.jfree.ui.TextAnchor
All Implemented Interfaces:
java.io.Serializable

public final class TextAnchor
extends java.lang.Object
implements java.io.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.

Author:
David Gilbert
See Also:
Serialized Form

Field Summary
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.
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if this object is equal to the specified object, and false otherwise.
static TextAnchor getHorizontalOpposite(TextAnchor anchor)
          Deprecated. Renderers now have positive and negative item label text anchors.
static TextAnchor getVerticalOpposite(TextAnchor anchor)
          Deprecated. Renderers now have positive and negative item label text anchors.
 java.lang.String toString()
          Returns a string representing the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TOP_LEFT

public static final TextAnchor TOP_LEFT
Top/left.


TOP_CENTER

public static final TextAnchor TOP_CENTER
Top/center.


TOP_RIGHT

public static final TextAnchor TOP_RIGHT
Top/right.


HALF_ASCENT_LEFT

public static final TextAnchor HALF_ASCENT_LEFT
Half-ascent/left.


HALF_ASCENT_CENTER

public static final TextAnchor HALF_ASCENT_CENTER
Half-ascent/center.


HALF_ASCENT_RIGHT

public static final TextAnchor HALF_ASCENT_RIGHT
Half-ascent/right.


CENTER_LEFT

public static final TextAnchor CENTER_LEFT
Middle/left.


CENTER

public static final TextAnchor CENTER
Middle/center.


CENTER_RIGHT

public static final TextAnchor CENTER_RIGHT
Middle/right.


BASELINE_LEFT

public static final TextAnchor BASELINE_LEFT
Baseline/left.


BASELINE_CENTER

public static final TextAnchor BASELINE_CENTER
Baseline/center.


BASELINE_RIGHT

public static final TextAnchor BASELINE_RIGHT
Baseline/right.


BOTTOM_LEFT

public static final TextAnchor BOTTOM_LEFT
Bottom/left.


BOTTOM_CENTER

public static final TextAnchor BOTTOM_CENTER
Bottom/center.


BOTTOM_RIGHT

public static final TextAnchor BOTTOM_RIGHT
Bottom/right.

Method Detail

toString

public java.lang.String toString()
Returns a string representing the object.

Returns:
The string.

equals

public boolean equals(java.lang.Object o)
Returns true if this object is equal to the specified object, and false otherwise.

Parameters:
o - the other object.
Returns:
A boolean.

getHorizontalOpposite

public static TextAnchor getHorizontalOpposite(TextAnchor anchor)
Deprecated. Renderers now have positive and negative item label text anchors.

Returns the anchor point that is horizontally opposite.

Parameters:
anchor - the anchor point.
Returns:
The horizontally opposite anchor point.

getVerticalOpposite

public static TextAnchor getVerticalOpposite(TextAnchor anchor)
Deprecated. Renderers now have positive and negative item label text anchors.

Returns the anchor point that is vertically opposite.

Parameters:
anchor - the anchor point.
Returns:
The vertically opposite anchor point.