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