org.jfree.chart.axis
Interface HorizontalAxis

All Known Implementing Classes:
HorizontalCategoryAxis, HorizontalDateAxis, HorizontalNumberAxis, HorizontalSymbolicAxis

public interface HorizontalAxis

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

Author:
David Gilbert
See Also:
VerticalAxis

Method Summary
 double reserveHeight(java.awt.Graphics2D g2, Plot plot, java.awt.geom.Rectangle2D drawArea, int location)
          Estimates the height required to draw the axis.
 double reserveHeight(java.awt.Graphics2D g2, Plot plot, java.awt.geom.Rectangle2D drawArea, int location, double reservedWidth, int verticalAxisLocation)
          Estimates the height required to draw the axis, assuming that the vertical axis has already reserved the specified width.
 

Method Detail

reserveHeight

public double reserveHeight(java.awt.Graphics2D g2,
                            Plot plot,
                            java.awt.geom.Rectangle2D drawArea,
                            int location)
Estimates the height required to draw the axis.

Parameters:
g2 - the graphics device.
plot - the plot that the axis belongs to.
drawArea - the area within which the plot (including axes) should be drawn.
location - the axis location (top or bottom).
Returns:
the height required to draw the axis.

reserveHeight

public double reserveHeight(java.awt.Graphics2D g2,
                            Plot plot,
                            java.awt.geom.Rectangle2D drawArea,
                            int location,
                            double reservedWidth,
                            int verticalAxisLocation)
Estimates the height required to draw the axis, assuming that the vertical axis has already reserved the specified width.

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.
reservedWidth - the width reserved by the vertical axis.
verticalAxisLocation - the location of the vertical axis.
Returns:
the height required to draw the axis.