org.jfree.chart.axis
Class CategoryLabelPosition

java.lang.Object
  extended byorg.jfree.chart.axis.CategoryLabelPosition
All Implemented Interfaces:
java.io.Serializable

public class CategoryLabelPosition
extends java.lang.Object
implements java.io.Serializable

The attributes that control the position of the labels for the categories on a CategoryAxis.

Instances of this class are immutable and other JFreeChart classes rely upon this.

Author:
David Gilbert
See Also:
Serialized Form

Constructor Summary
CategoryLabelPosition()
          Creates a new position record with default settings.
CategoryLabelPosition(org.jfree.ui.RectangleAnchor categoryAnchor, org.jfree.text.TextBlockAnchor labelAnchor, org.jfree.ui.TextAnchor rotationAnchor, double angle)
          Creates a new position record.
 
Method Summary
 boolean equals(java.lang.Object object)
          Tests an object for equality with this instance.
 double getAngle()
          Returns the angle of rotation for the label.
 org.jfree.ui.RectangleAnchor getCategoryAnchor()
          Returns the item label anchor.
 org.jfree.text.TextBlockAnchor getLabelAnchor()
          Returns the text block anchor.
 org.jfree.ui.TextAnchor getRotationAnchor()
          Returns the rotation anchor point.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryLabelPosition

public CategoryLabelPosition()
Creates a new position record with default settings.


CategoryLabelPosition

public CategoryLabelPosition(org.jfree.ui.RectangleAnchor categoryAnchor,
                             org.jfree.text.TextBlockAnchor labelAnchor,
                             org.jfree.ui.TextAnchor rotationAnchor,
                             double angle)
Creates a new position record. The item label anchor is a point relative to the data item (dot, bar or other visual item) on a chart. The item label is aligned by aligning the text anchor with the item label anchor.

Parameters:
categoryAnchor - the category anchor.
labelAnchor - the label anchor.
rotationAnchor - the rotation anchor.
angle - the rotation angle.
Method Detail

getCategoryAnchor

public org.jfree.ui.RectangleAnchor getCategoryAnchor()
Returns the item label anchor.

Returns:
The item label anchor.

getLabelAnchor

public org.jfree.text.TextBlockAnchor getLabelAnchor()
Returns the text block anchor.

Returns:
The text block anchor.

getRotationAnchor

public org.jfree.ui.TextAnchor getRotationAnchor()
Returns the rotation anchor point.

Returns:
The rotation anchor point.

getAngle

public double getAngle()
Returns the angle of rotation for the label.

Returns:
The angle.

equals

public boolean equals(java.lang.Object object)
Tests an object for equality with this instance.

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