org.jfree.chart.axis
Interface VerticalAxis

All Known Implementing Classes:
VerticalCategoryAxis, VerticalDateAxis, VerticalNumberAxis, VerticalSymbolicAxis

public interface VerticalAxis

An interface that must be supported by all vertical axes for layout purposes.

Author:
David Gilbert
See Also:
HorizontalAxis

Method Summary
 double reserveWidth(java.awt.Graphics2D g2, Plot plot, java.awt.geom.Rectangle2D drawArea, int location)
          Returns the width of the axis.
 double reserveWidth(java.awt.Graphics2D g2, Plot plot, java.awt.geom.Rectangle2D drawArea, int location, double reservedHeight, int horizontalAxisLocation)
          Returns the width of the axis, assuming that the horizontal axis has already reserved the specified height.
 

Method Detail

reserveWidth

public double reserveWidth(java.awt.Graphics2D g2,
                           Plot plot,
                           java.awt.geom.Rectangle2D drawArea,
                           int location)
Returns the width of the axis.

Parameters:
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.
Returns:
the estimated width required to draw the axis.

reserveWidth

public double reserveWidth(java.awt.Graphics2D g2,
                           Plot plot,
                           java.awt.geom.Rectangle2D drawArea,
                           int location,
                           double reservedHeight,
                           int horizontalAxisLocation)
Returns the width of the axis, assuming that the horizontal axis has already reserved the specified height.

Parameters:
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.
reservedHeight - the height reserved by the horizontal axis.
horizontalAxisLocation - the horizontal axis location.
Returns:
the estimated width required to draw the axis.