org.jfree.ui

Class TextAnchor

public final class TextAnchor extends Object implements 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

Field Summary
static TextAnchorBASELINE_CENTER
Baseline/center.
static TextAnchorBASELINE_LEFT
Baseline/left.
static TextAnchorBASELINE_RIGHT
Baseline/right.
static TextAnchorBOTTOM_CENTER
Bottom/center.
static TextAnchorBOTTOM_LEFT
Bottom/left.
static TextAnchorBOTTOM_RIGHT
Bottom/right.
static TextAnchorCENTER
Middle/center.
static TextAnchorCENTER_LEFT
Middle/left.
static TextAnchorCENTER_RIGHT
Middle/right.
static TextAnchorHALF_ASCENT_CENTER
Half-ascent/center.
static TextAnchorHALF_ASCENT_LEFT
Half-ascent/left.
static TextAnchorHALF_ASCENT_RIGHT
Half-ascent/right.
static TextAnchorTOP_CENTER
Top/center.
static TextAnchorTOP_LEFT
Top/left.
static TextAnchorTOP_RIGHT
Top/right.
Method Summary
booleanequals(Object o)
Returns true if this object is equal to the specified object, and false otherwise.
inthashCode()
Returns a hash code value for the object.
StringtoString()
Returns a string representing the object.

Field Detail

BASELINE_CENTER

public static final TextAnchor BASELINE_CENTER
Baseline/center.

BASELINE_LEFT

public static final TextAnchor BASELINE_LEFT
Baseline/left.

BASELINE_RIGHT

public static final TextAnchor BASELINE_RIGHT
Baseline/right.

BOTTOM_CENTER

public static final TextAnchor BOTTOM_CENTER
Bottom/center.

BOTTOM_LEFT

public static final TextAnchor BOTTOM_LEFT
Bottom/left.

BOTTOM_RIGHT

public static final TextAnchor BOTTOM_RIGHT
Bottom/right.

CENTER

public static final TextAnchor CENTER
Middle/center.

CENTER_LEFT

public static final TextAnchor CENTER_LEFT
Middle/left.

CENTER_RIGHT

public static final TextAnchor CENTER_RIGHT
Middle/right.

HALF_ASCENT_CENTER

public static final TextAnchor HALF_ASCENT_CENTER
Half-ascent/center.

HALF_ASCENT_LEFT

public static final TextAnchor HALF_ASCENT_LEFT
Half-ascent/left.

HALF_ASCENT_RIGHT

public static final TextAnchor HALF_ASCENT_RIGHT
Half-ascent/right.

TOP_CENTER

public static final TextAnchor TOP_CENTER
Top/center.

TOP_LEFT

public static final TextAnchor TOP_LEFT
Top/left.

TOP_RIGHT

public static final TextAnchor TOP_RIGHT
Top/right.

Method Detail

equals

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

Parameters: o the other object.

Returns: A boolean.

hashCode

public int hashCode()
Returns a hash code value for the object.

Returns: The hashcode

toString

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

Returns: The string.