|
||||||||||
| 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
|
+--org.jfree.chart.axis.VerticalCategoryAxis
A vertical axis that displays categories, used for horizontal bar charts.
| Field Summary | |
static boolean |
DEFAULT_VERTICAL_LABEL
The default setting for vertical axis label. |
| Fields inherited from class org.jfree.chart.axis.CategoryAxis |
DEFAULT_AXIS_MARGIN, DEFAULT_CATEGORY_MARGIN |
| Constructor Summary | |
VerticalCategoryAxis(java.lang.String label)
Constructs a new axis, using default attributes where necessary. |
|
| Method Summary | |
void |
configure()
Configures the axis against the current plot. |
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
java.awt.geom.Rectangle2D dataArea,
int location)
Draws the axis on a Java 2D graphics device (such as the screen or a printer). |
double |
getCategoryEnd(int category,
int categoryCount,
java.awt.geom.Rectangle2D area)
Returns the end coordinate for the specified category. |
double |
getCategoryMiddle(int category,
int categoryCount,
java.awt.geom.Rectangle2D area)
Returns the middle coordinate for the specified category. |
double |
getCategoryStart(int category,
int categoryCount,
java.awt.geom.Rectangle2D area)
Returns the starting coordinate for the specified category. |
protected boolean |
isCompatiblePlot(Plot plot)
Returns true if the specified plot is compatible with the axis, and false otherwise. |
boolean |
isVerticalLabel()
Returns a flag indicating whether or not the axis label is drawn vertically. |
void |
refreshTicks(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D drawArea,
java.awt.geom.Rectangle2D plotArea,
int location)
Creates a temporary list of ticks that can be used when drawing the axis. |
double |
reserveWidth(java.awt.Graphics2D g2,
Plot plot,
java.awt.geom.Rectangle2D drawArea,
int location)
Estimates the height required for the axis, given a specific drawing area, without any information about the width of the vertical axis. |
double |
reserveWidth(java.awt.Graphics2D g2,
Plot plot,
java.awt.geom.Rectangle2D drawArea,
int location,
double reservedHeight,
int horizontalAxisLocation)
Returns the area required to draw the axis in the specified draw area. |
void |
setVerticalLabel(boolean flag)
Sets a flag indicating whether or not the axis label is drawn vertically. |
| Methods inherited from class org.jfree.chart.axis.CategoryAxis |
equals, getCategoryMargin, getLowerMargin, getUpperMargin, setCategoryMargin, setLowerMargin, setUpperMargin |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final boolean DEFAULT_VERTICAL_LABEL
| Constructor Detail |
public VerticalCategoryAxis(java.lang.String label)
label - the axis label (null permitted).| Method Detail |
public boolean isVerticalLabel()
public void setVerticalLabel(boolean flag)
flag - the flag.
public double getCategoryStart(int category,
int categoryCount,
java.awt.geom.Rectangle2D area)
getCategoryStart in class CategoryAxiscategory - the category.categoryCount - the number of categories.area - the data area.
public double getCategoryMiddle(int category,
int categoryCount,
java.awt.geom.Rectangle2D area)
getCategoryMiddle in class CategoryAxiscategory - the category.categoryCount - the number of categories.area - the data area.
public double getCategoryEnd(int category,
int categoryCount,
java.awt.geom.Rectangle2D area)
getCategoryEnd in class CategoryAxiscategory - the category.categoryCount - the number of categories.area - the data area.
public void draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
java.awt.geom.Rectangle2D dataArea,
int location)
draw in class Axisg2 - the graphics device.plotArea - the area within which the axis should be drawn.dataArea - the area within which the plot is being drawn.location - the location of the axis (LEFT or RIGHT).
public void refreshTicks(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D drawArea,
java.awt.geom.Rectangle2D plotArea,
int location)
refreshTicks in class Axisg2 - the graphics device (used to get font measurements).drawArea - the area where the plot and axes will be drawn.plotArea - the area inside the axes.location - the location of the axis.
public double reserveWidth(java.awt.Graphics2D g2,
Plot plot,
java.awt.geom.Rectangle2D drawArea,
int location)
Supports the VerticalAxis interface.
reserveWidth in interface VerticalAxisg2 - the graphics device (used to obtain font information).drawArea - the area within which the axis should be drawn.plot - the plot that the axis belongs to.location - the axis location.
public double reserveWidth(java.awt.Graphics2D g2,
Plot plot,
java.awt.geom.Rectangle2D drawArea,
int location,
double reservedHeight,
int horizontalAxisLocation)
reserveWidth in interface VerticalAxisg2 - the graphics device.plot - the plot that the axis belongs to.drawArea - the area within which the plot should be drawn.location - the axis location.reservedHeight - the height reserved by the horizontal axis.horizontalAxisLocation - the horizontal axis location.
protected boolean isCompatiblePlot(Plot plot)
isCompatiblePlot in class Axisplot - the plot.
public void configure()
configure in class Axis
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||