Package org.jfree.chart.text
Class TextBlockAnchor
java.lang.Object
org.jfree.chart.text.TextBlockAnchor
- All Implemented Interfaces:
Serializable
Used to indicate the position of an anchor point for a text block.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TextBlockAnchor
Bottom/center.static final TextBlockAnchor
Bottom/left.static final TextBlockAnchor
Bottom/right.static final TextBlockAnchor
Middle/center.static final TextBlockAnchor
Middle/left.static final TextBlockAnchor
Middle/right.private final String
The name.private static final long
For serialization.static final TextBlockAnchor
Top/center.static final TextBlockAnchor
Top/left.static final TextBlockAnchor
Top/right. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if this object is equal to the specified object, andfalse
otherwise.int
hashCode()
Returns a hash code value for the object.private Object
Ensures that serialization returns the unique instances.toString()
Returns a string representing the object.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor serialization.- See Also:
-
TOP_LEFT
Top/left. -
TOP_CENTER
Top/center. -
TOP_RIGHT
Top/right. -
CENTER_LEFT
Middle/left. -
CENTER
Middle/center. -
CENTER_RIGHT
Middle/right. -
BOTTOM_LEFT
Bottom/left. -
BOTTOM_CENTER
Bottom/center. -
BOTTOM_RIGHT
Bottom/right. -
name
The name.
-
-
Constructor Details
-
TextBlockAnchor
Private constructor.- Parameters:
name
- the name.
-
-
Method Details
-
toString
Returns a string representing the object. -
equals
Returnstrue
if this object is equal to the specified object, andfalse
otherwise. -
hashCode
public int hashCode()Returns a hash code value for the object. -
readResolve
Ensures that serialization returns the unique instances.- Returns:
- The object.
- Throws:
ObjectStreamException
- if there is a problem.
-