com.jrefinery.chart
Class HighLowRenderer

java.lang.Object
  extended by com.jrefinery.chart.AbstractXYItemRenderer
      extended by com.jrefinery.chart.HighLowRenderer
All Implemented Interfaces:
XYItemRenderer

public class HighLowRenderer
extends AbstractXYItemRenderer
implements XYItemRenderer

A renderer that draws high/low/open/close markers on an XY plot (requires an IntervalXYDataset).


Field Summary
 
Fields inherited from class com.jrefinery.chart.AbstractXYItemRenderer
info, listeners, toolTipGenerator
 
Constructor Summary
HighLowRenderer()
          The default constructor.
HighLowRenderer(com.jrefinery.chart.tooltips.XYToolTipGenerator tooltipGenerator)
           
 
Method Summary
 void drawItem(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, ChartRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset data, int series, int item, CrosshairInfo crosshairInfo)
          Draws the visual representation of a single data item.
 
Methods inherited from class com.jrefinery.chart.AbstractXYItemRenderer
addPropertyChangeListener, firePropertyChanged, getToolTipGenerator, initialise, removePropertyChangeListener, setToolTipGenerator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jrefinery.chart.XYItemRenderer
addPropertyChangeListener, getToolTipGenerator, initialise, removePropertyChangeListener, setToolTipGenerator
 

Constructor Detail

HighLowRenderer

public HighLowRenderer()
The default constructor.


HighLowRenderer

public HighLowRenderer(com.jrefinery.chart.tooltips.XYToolTipGenerator tooltipGenerator)
Method Detail

drawItem

public void drawItem(java.awt.Graphics2D g2,
                     java.awt.geom.Rectangle2D dataArea,
                     ChartRenderingInfo info,
                     XYPlot plot,
                     ValueAxis domainAxis,
                     ValueAxis rangeAxis,
                     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 plot is being drawn.
info - Collects information about the drawing.
plot - The plot (can be used to obtain standard color information etc).
domainAxis - The domain axis.
rangeAxis - The range 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.