com.jrefinery.chart
Interface HorizontalAxis

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

public interface HorizontalAxis

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

Author:
DG

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

Method Detail

reserveAxisArea

public java.awt.geom.Rectangle2D reserveAxisArea(java.awt.Graphics2D g2,
                                                 Plot plot,
                                                 java.awt.geom.Rectangle2D drawArea,
                                                 double reservedWidth)
Estimates the area 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.
reservedWidth - the width reserved by the vertical axis.
Returns:
the area required to draw the axis.

reserveHeight

public double reserveHeight(java.awt.Graphics2D g2,
                            Plot plot,
                            java.awt.geom.Rectangle2D drawArea)
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.
Returns:
the height required to draw the axis.