org.jfree.text

Class TextBlockAnchor

Implemented Interfaces:
Serializable

public final class TextBlockAnchor
extends java.lang.Object
implements Serializable

Used to indicate the position of an anchor point for a text block.
Author:
David Gilbert

Field Summary

static TextBlockAnchor
BOTTOM_CENTER
Bottom/center.
static TextBlockAnchor
BOTTOM_LEFT
Bottom/left.
static TextBlockAnchor
BOTTOM_RIGHT
Bottom/right.
static TextBlockAnchor
CENTER
Middle/center.
static TextBlockAnchor
CENTER_LEFT
Middle/left.
static TextBlockAnchor
CENTER_RIGHT
Middle/right.
static TextBlockAnchor
TOP_CENTER
Top/center.
static TextBlockAnchor
TOP_LEFT
Top/left.
static TextBlockAnchor
TOP_RIGHT
Top/right.

Method Summary

boolean
equals(Object o)
Returns true if this object is equal to the specified object, and false otherwise.
int
hashCode()
Returns a hash code value for the object.
String
toString()
Returns a string representing the object.

Field Details

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 Details

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.