|
||||||||||
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.ValueAxis | +--org.jfree.chart.axis.NumberAxis | +--org.jfree.chart.axis.HorizontalNumberAxis | +--org.jfree.chart.axis.HorizontalNumberAxis3D
A horizontal axis that displays numerical values, and has a 3D-effect.
Field Summary |
Fields inherited from class org.jfree.chart.axis.HorizontalNumberAxis |
DEFAULT_VERTICAL_TICK_LABELS |
Fields inherited from class org.jfree.chart.axis.NumberAxis |
DEFAULT_AUTO_RANGE_INCLUDES_ZERO, DEFAULT_AUTO_RANGE_STICKY_ZERO, DEFAULT_TICK_UNIT |
Fields inherited from class org.jfree.chart.axis.ValueAxis |
DEFAULT_AUTO_RANGE, DEFAULT_AUTO_RANGE_MINIMUM_SIZE, DEFAULT_AUTO_TICK_UNIT_SELECTION, DEFAULT_INVERTED, DEFAULT_LOWER_BOUND, DEFAULT_LOWER_MARGIN, DEFAULT_RANGE, DEFAULT_UPPER_BOUND, DEFAULT_UPPER_MARGIN, MAXIMUM_TICK_COUNT |
Constructor Summary | |
HorizontalNumberAxis3D(java.lang.String label)
Constructs a horizontal number axis, using default attribute values where necessary. |
Method Summary | |
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). |
protected boolean |
isCompatiblePlot(Plot plot)
Returns true if a plot is compatible with the axis, and false otherwise. |
double |
reserveHeight(java.awt.Graphics2D g2,
Plot plot,
java.awt.geom.Rectangle2D drawArea,
int location)
Returns the height required to draw the axis in the specified draw area. |
double |
reserveHeight(java.awt.Graphics2D g2,
Plot plot,
java.awt.geom.Rectangle2D drawArea,
int location,
double reservedWidth,
int verticalAxisLocation)
Returns area in which the axis will be displayed. |
Methods inherited from class org.jfree.chart.axis.HorizontalNumberAxis |
autoAdjustRange, configure, getMarkerBand, isVerticalTickLabels, refreshTicks, selectAutoTickUnit, setMarkerBand, setVerticalTickLabels, translateJava2DtoValue, translateValueToJava2D |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HorizontalNumberAxis3D(java.lang.String label)
label
- The axis label (null permitted).Method Detail |
public void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D dataArea, int location)
draw
in class HorizontalNumberAxis
g2
- the graphics device.plotArea
- the area for drawing the axes and data.dataArea
- the area for drawing the data (a subset of the plotArea).location
- the axis location.public double reserveHeight(java.awt.Graphics2D g2, Plot plot, java.awt.geom.Rectangle2D drawArea, int location)
reserveHeight
in interface HorizontalAxis
reserveHeight
in class HorizontalNumberAxis
g2
- 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 (top or bottom).
public double reserveHeight(java.awt.Graphics2D g2, Plot plot, java.awt.geom.Rectangle2D drawArea, int location, double reservedWidth, int verticalAxisLocation)
reserveHeight
in interface HorizontalAxis
reserveHeight
in class HorizontalNumberAxis
g2
- the graphics device.plot
- a reference to the plot.drawArea
- the area within which the plot and axes should be drawn.location
- the axis location.reservedWidth
- the space already reserved for the vertical axis.verticalAxisLocation
- the location of the vertical axis.
protected boolean isCompatiblePlot(Plot plot)
For this axis, the requirement is that the plot implements the HorizontalValuePlot interface.
isCompatiblePlot
in class HorizontalNumberAxis
plot
- the plot.
true
if a plot is compatible with the axis.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |