| java.lang.Object org.jfree.chart.axis.CategoryLabelPosition
CategoryLabelPosition | public class CategoryLabelPosition implements Serializable(Code) | | 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.
|
Method Summary | |
public boolean | equals(Object obj) Tests this instance for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | public double | getAngle() Returns the angle of rotation for the label. | public RectangleAnchor | getCategoryAnchor() Returns the item label anchor. | public TextBlockAnchor | getLabelAnchor() Returns the text block anchor. | public TextAnchor | getRotationAnchor() Returns the rotation anchor point. | public float | getWidthRatio() Returns the ratio used to calculate the maximum category label width. | public CategoryLabelWidthType | getWidthType() Returns the width calculation type. | public int | hashCode() Returns a hash code for this object. |
CategoryLabelPosition | public CategoryLabelPosition()(Code) | | Creates a new position record with default settings.
|
CategoryLabelPosition | public CategoryLabelPosition(RectangleAnchor categoryAnchor, TextBlockAnchor labelAnchor)(Code) | | Creates a new category label position record.
Parameters: categoryAnchor - the category anchor (null not permitted). Parameters: labelAnchor - the label anchor (null not permitted). |
CategoryLabelPosition | public CategoryLabelPosition(RectangleAnchor categoryAnchor, TextBlockAnchor labelAnchor, CategoryLabelWidthType widthType, float widthRatio)(Code) | | Creates a new category label position record.
Parameters: categoryAnchor - the category anchor (null not permitted). Parameters: labelAnchor - the label anchor (null not permitted). Parameters: widthType - the width type (null not permitted). Parameters: widthRatio - the maximum label width as a percentage (of the category space or the range space). |
CategoryLabelPosition | public CategoryLabelPosition(RectangleAnchor categoryAnchor, TextBlockAnchor labelAnchor, TextAnchor rotationAnchor, double angle, CategoryLabelWidthType widthType, float widthRatio)(Code) | | 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 (null not permitted). Parameters: labelAnchor - the label anchor (null not permitted). Parameters: rotationAnchor - the rotation anchor (null not permitted). Parameters: angle - the rotation angle (null not permitted). Parameters: widthType - the width type (null not permitted). Parameters: widthRatio - the maximum label width as a percentage (of the category space or the range space). |
equals | public boolean equals(Object obj)(Code) | | Tests this instance for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
getAngle | public double getAngle()(Code) | | Returns the angle of rotation for the label.
The angle (in radians). |
getCategoryAnchor | public RectangleAnchor getCategoryAnchor()(Code) | | Returns the item label anchor.
The item label anchor (never null ). |
getLabelAnchor | public TextBlockAnchor getLabelAnchor()(Code) | | Returns the text block anchor.
The text block anchor (never null ). |
getRotationAnchor | public TextAnchor getRotationAnchor()(Code) | | Returns the rotation anchor point.
The rotation anchor point (never null ). |
getWidthRatio | public float getWidthRatio()(Code) | | Returns the ratio used to calculate the maximum category label width.
The ratio. |
hashCode | public int hashCode()(Code) | | Returns a hash code for this object.
A hash code. |
|
|