|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.chart.axis.Axis | +--org.jfree.chart.axis.CategoryAxis
The base class for axes that display categories.
Field Summary | |
static double |
DEFAULT_AXIS_MARGIN
The default margin for the axis (used for both lower and upper margins). |
static double |
DEFAULT_CATEGORY_MARGIN
The default margin between categories (a percentage of the overall axis length). |
Constructor Summary | |
protected |
CategoryAxis(java.lang.String label)
Constructs a category axis, using default values where necessary. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Tests this axis for equality with another object. |
abstract double |
getCategoryEnd(int category,
int categoryCount,
java.awt.geom.Rectangle2D area)
Returns the end coordinate for the specified category. |
double |
getCategoryMargin()
Returns the category margin. |
abstract double |
getCategoryMiddle(int category,
int categoryCount,
java.awt.geom.Rectangle2D area)
Returns the middle coordinate for the specified category. |
abstract double |
getCategoryStart(int category,
int categoryCount,
java.awt.geom.Rectangle2D area)
Returns the starting coordinate for the specified category. |
double |
getLowerMargin()
Returns the lower margin for the axis. |
double |
getUpperMargin()
Returns the upper margin for the axis. |
void |
setCategoryMargin(double margin)
Sets the category margin. |
void |
setLowerMargin(double margin)
Sets the lower margin for the axis. |
void |
setUpperMargin(double margin)
Sets the upper margin for the axis. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final double DEFAULT_AXIS_MARGIN
public static final double DEFAULT_CATEGORY_MARGIN
Constructor Detail |
protected CategoryAxis(java.lang.String label)
label
- the axis label.Method Detail |
public double getLowerMargin()
public void setLowerMargin(double margin)
AxisChangeEvent
is sent to all registered
listeners.
margin
- the new margin.public double getUpperMargin()
public void setUpperMargin(double margin)
AxisChangeEvent
is sent to all registered
listeners.
margin
- the new margin.public double getCategoryMargin()
public void setCategoryMargin(double margin)
AxisChangeEvent
is sent to all registered
listeners.
margin
- the new margin.public abstract double getCategoryStart(int category, int categoryCount, java.awt.geom.Rectangle2D area)
category
- the category.categoryCount
- the number of categories.area
- the data area.
public abstract double getCategoryMiddle(int category, int categoryCount, java.awt.geom.Rectangle2D area)
category
- the category.categoryCount
- the number of categories.area
- the data area.
public abstract double getCategoryEnd(int category, int categoryCount, java.awt.geom.Rectangle2D area)
category
- the category.categoryCount
- the number of categories.area
- the data area.
public boolean equals(java.lang.Object obj)
equals
in class Axis
obj
- the object.
true
or false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |