com.jrefinery.chart
Interface HorizontalAxis

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

public interface HorizontalAxis

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


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

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.

reserveHeight

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.


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.