org.jfree.text

Class TextBlockAnchor

public final class TextBlockAnchor extends Object implements Serializable

Used to indicate the position of an anchor point for a text block.

Author: David Gilbert

Field Summary
static TextBlockAnchorBOTTOM_CENTER
Bottom/center.
static TextBlockAnchorBOTTOM_LEFT
Bottom/left.
static TextBlockAnchorBOTTOM_RIGHT
Bottom/right.
static TextBlockAnchorCENTER
Middle/center.
static TextBlockAnchorCENTER_LEFT
Middle/left.
static TextBlockAnchorCENTER_RIGHT
Middle/right.
static TextBlockAnchorTOP_CENTER
Top/center.
static TextBlockAnchorTOP_LEFT
Top/left.
static TextBlockAnchorTOP_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

BOTTOM_CENTER

public static final TextBlockAnchor BOTTOM_CENTER
Bottom/center.

BOTTOM_LEFT

public static final TextBlockAnchor BOTTOM_LEFT
Bottom/left.

BOTTOM_RIGHT

public static final TextBlockAnchor BOTTOM_RIGHT
Bottom/right.

CENTER

public static final TextBlockAnchor CENTER
Middle/center.

CENTER_LEFT

public static final TextBlockAnchor CENTER_LEFT
Middle/left.

CENTER_RIGHT

public static final TextBlockAnchor CENTER_RIGHT
Middle/right.

TOP_CENTER

public static final TextBlockAnchor TOP_CENTER
Top/center.

TOP_LEFT

public static final TextBlockAnchor TOP_LEFT
Top/left.

TOP_RIGHT

public static final TextBlockAnchor 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.