org.jfree.chart.renderer
Class ItemLabelPosition

java.lang.Object
  extended byorg.jfree.chart.renderer.ItemLabelPosition
All Implemented Interfaces:
java.io.Serializable

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

The attributes that control the position of the label for each data item on a chart.

Author:
David Gilbert
See Also:
Serialized Form

Constructor Summary
ItemLabelPosition()
          Creates a new position record with default settings.
ItemLabelPosition(ItemLabelAnchor itemLabelAnchor, org.jfree.ui.TextAnchor textAnchor, 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.
 ItemLabelAnchor getItemLabelAnchor()
          Returns the item label anchor.
 org.jfree.ui.TextAnchor getRotationAnchor()
          Returns the rotation anchor point.
 org.jfree.ui.TextAnchor getTextAnchor()
          Returns the text anchor.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemLabelPosition

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


ItemLabelPosition

public ItemLabelPosition(ItemLabelAnchor itemLabelAnchor,
                         org.jfree.ui.TextAnchor textAnchor,
                         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:
itemLabelAnchor - the item label anchor.
textAnchor - the text anchor.
rotationAnchor - the rotation anchor.
angle - the rotation angle.
Method Detail

getItemLabelAnchor

public ItemLabelAnchor getItemLabelAnchor()
Returns the item label anchor.

Returns:
The item label anchor.

getTextAnchor

public org.jfree.ui.TextAnchor getTextAnchor()
Returns the text anchor.

Returns:
The text 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.