Save This Page
Home » jcommon-1.0.13 » org.jfree » chart » labels » [javadoc | source]
org.jfree.chart.labels
public class: ItemLabelPosition [javadoc | source]
java.lang.Object
   org.jfree.chart.labels.ItemLabelPosition

All Implemented Interfaces:
    Serializable

The attributes that control the position of the label for each data item on a chart. Instances of this class are immutable.
Constructor:
 public ItemLabelPosition() 
 public ItemLabelPosition(ItemLabelAnchor itemLabelAnchor,
    TextAnchor textAnchor) 
    Creates a new position record (with zero rotation).
    Parameters:
    itemLabelAnchor - the item label anchor (null not permitted).
    textAnchor - the text anchor (null not permitted).
 public ItemLabelPosition(ItemLabelAnchor itemLabelAnchor,
    TextAnchor textAnchor,
    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 (null not permitted).
    textAnchor - the text anchor (null not permitted).
    rotationAnchor - the rotation anchor (null not permitted).
    angle - the rotation angle (in radians).
Method from org.jfree.chart.labels.ItemLabelPosition Summary:
equals,   getAngle,   getItemLabelAnchor,   getRotationAnchor,   getTextAnchor
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.chart.labels.ItemLabelPosition Detail:
 public boolean equals(Object obj) 
    Tests this object for equality with an arbitrary object.
 public double getAngle() 
    Returns the angle of rotation for the label.
 public ItemLabelAnchor getItemLabelAnchor() 
    Returns the item label anchor.
 public TextAnchor getRotationAnchor() 
    Returns the rotation anchor point.
 public TextAnchor getTextAnchor() 
    Returns the text anchor.