|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jfree.chart.axis.CategoryLabelPositions
public class CategoryLabelPositions
Records the label positions for a category axis. Instances of this class are immutable.
Field Summary | |
---|---|
static CategoryLabelPositions |
DOWN_45
DOWN_45 category label positions. |
static CategoryLabelPositions |
DOWN_90
DOWN_90 category label positions. |
static CategoryLabelPositions |
STANDARD
STANDARD category label positions. |
static CategoryLabelPositions |
UP_45
UP_45 category label positions. |
static CategoryLabelPositions |
UP_90
UP_90 category label positions. |
Constructor Summary | |
---|---|
CategoryLabelPositions()
Default constructor. |
|
CategoryLabelPositions(CategoryLabelPosition top,
CategoryLabelPosition bottom,
CategoryLabelPosition left,
CategoryLabelPosition right)
Creates a new position specification. |
Method Summary | |
---|---|
static CategoryLabelPositions |
createDownRotationLabelPositions(double angle)
Creates a new instance where the category labels angled downwards by the specified amount. |
static CategoryLabelPositions |
createUpRotationLabelPositions(double angle)
Creates a new instance where the category labels angled upwards by the specified amount. |
boolean |
equals(java.lang.Object obj)
Returns true if this object is equal to the specified
object, and false otherwise. |
CategoryLabelPosition |
getLabelPosition(org.jfree.ui.RectangleEdge edge)
Returns the category label position specification for an axis at the given location. |
int |
hashCode()
Returns a hash code for this object. |
static CategoryLabelPositions |
replaceBottomPosition(CategoryLabelPositions base,
CategoryLabelPosition bottom)
Returns a new instance based on an existing instance but with the bottom position changed. |
static CategoryLabelPositions |
replaceLeftPosition(CategoryLabelPositions base,
CategoryLabelPosition left)
Returns a new instance based on an existing instance but with the left position changed. |
static CategoryLabelPositions |
replaceRightPosition(CategoryLabelPositions base,
CategoryLabelPosition right)
Returns a new instance based on an existing instance but with the right position changed. |
static CategoryLabelPositions |
replaceTopPosition(CategoryLabelPositions base,
CategoryLabelPosition top)
Returns a new instance based on an existing instance but with the top position changed. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final CategoryLabelPositions STANDARD
public static final CategoryLabelPositions UP_90
public static final CategoryLabelPositions DOWN_90
public static final CategoryLabelPositions UP_45
public static final CategoryLabelPositions DOWN_45
Constructor Detail |
---|
public CategoryLabelPositions()
public CategoryLabelPositions(CategoryLabelPosition top, CategoryLabelPosition bottom, CategoryLabelPosition left, CategoryLabelPosition right)
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).Method Detail |
---|
public static CategoryLabelPositions createUpRotationLabelPositions(double angle)
angle
- the rotation angle (should be < Math.PI / 2.0).
public static CategoryLabelPositions createDownRotationLabelPositions(double angle)
angle
- the rotation angle (should be < Math.PI / 2.0).
public CategoryLabelPosition getLabelPosition(org.jfree.ui.RectangleEdge edge)
edge
- the axis location.
public static CategoryLabelPositions replaceTopPosition(CategoryLabelPositions base, CategoryLabelPosition top)
base
- the base (null
not permitted).top
- the top position (null
not permitted).
null
).public static CategoryLabelPositions replaceBottomPosition(CategoryLabelPositions base, CategoryLabelPosition bottom)
base
- the base (null
not permitted).bottom
- the bottom position (null
not permitted).
null
).public static CategoryLabelPositions replaceLeftPosition(CategoryLabelPositions base, CategoryLabelPosition left)
base
- the base (null
not permitted).left
- the left position (null
not permitted).
null
).public static CategoryLabelPositions replaceRightPosition(CategoryLabelPositions base, CategoryLabelPosition right)
base
- the base (null
not permitted).right
- the right position (null
not permitted).
null
).public boolean equals(java.lang.Object obj)
true
if this object is equal to the specified
object, and false
otherwise.
equals
in class java.lang.Object
obj
- the other object.
public int hashCode()
hashCode
in class java.lang.Object
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |