org.jfree.chart.axis
Class CategoryLabelPositions
java.lang.Object
org.jfree.chart.axis.CategoryLabelPositions
- Serializable
extends java.lang.Object
implements Serializable
Records the label positions for a category axis. Instances of this class
are immutable.
CategoryLabelPositions
public CategoryLabelPositions(CategoryLabelPosition top,
CategoryLabelPosition bottom,
CategoryLabelPosition left,
CategoryLabelPosition right)
Creates a new position specification.
top
- the label position info used when an axis is at the top
(null
not permitted).bottom
- the label position info used when an axis is at the
bottom (null
not permitted).left
- the label position info used when an axis is at the left
(null
not permitted).right
- the label position info used when an axis is at the right
(null
not permitted).
createDownRotationLabelPositions
public static CategoryLabelPositions createDownRotationLabelPositions(double angle)
Creates a new instance where the category labels angled downwards by the
specified amount.
angle
- the rotation angle (should be <32Math.PI / 2.0).
- A category label position specification.
createUpRotationLabelPositions
public static CategoryLabelPositions createUpRotationLabelPositions(double angle)
Creates a new instance where the category labels angled upwards by the
specified amount.
angle
- the rotation angle (should be <32Math.PI / 2.0).
- A category label position specification.
equals
public boolean equals(Object obj)
Returns true
if this object is equal to the specified
object, and false
otherwise.
getLabelPosition
public CategoryLabelPosition getLabelPosition(RectangleEdge edge)
Returns the category label position specification for an axis at the
given location.
edge
- the axis location.
- The category label position specification.
hashCode
public int hashCode()
Returns a hash code for this object.