com.jrefinery.chart
Class XYStepRenderer
java.lang.Object
com.jrefinery.chart.AbstractXYItemRenderer
com.jrefinery.chart.XYStepRenderer
- All Implemented Interfaces:
- XYItemRenderer
public class XYStepRenderer
- extends AbstractXYItemRenderer
- implements XYItemRenderer
Line/Step item renderer for an XYPlot. This class draws lines between data points,
only allowing horizontal or vertical lines (steps).
|
Field Summary |
protected java.awt.geom.Line2D |
line
A working line (to save creating many instances). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
line
protected java.awt.geom.Line2D line
- A working line (to save creating many instances).
XYStepRenderer
public XYStepRenderer()
- Constructs a new renderer.
drawItem
public void drawItem(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
ChartRenderingInfo info,
XYPlot plot,
ValueAxis horizontalAxis,
ValueAxis verticalAxis,
XYDataset data,
int series,
int item,
CrosshairInfo crosshairInfo)
- Draws the visual representation of a single data item.
- Specified by:
drawItem in interface XYItemRenderer
- Parameters:
g2 - The graphics device.dataArea - The area within which the data is being drawn.info - Collects information about the drawing.plot - The plot (can be used to obtain standard color information etc).horizontalAxis - The horizontal axis.verticalAxis - The vertical axis.data - The dataset.series - The series index.item - The item index.
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.