com.jrefinery.chart
Class HighLowRenderer

java.lang.Object
  |
  +--com.jrefinery.chart.AbstractRenderer
        |
        +--com.jrefinery.chart.AbstractXYItemRenderer
              |
              +--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 a HighLowDataset).

Author:
DG

Constructor Summary
HighLowRenderer()
          The default constructor.
HighLowRenderer(XYToolTipGenerator toolTipGenerator)
          Creates a new renderer with the specified tool tip generator.
 
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
drawDomainMarker, drawRangeMarker, getLegendItem, getPlot, getToolTipGenerator, getURLGenerator, initialise, setPlot, setToolTipGenerator, setURLGenerator
 
Methods inherited from class com.jrefinery.chart.AbstractRenderer
addPropertyChangeListener, firePropertyChanged, getInfo, removePropertyChangeListener, setInfo
 
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, drawDomainMarker, drawRangeMarker, getLegendItem, getPlot, getToolTipGenerator, getURLGenerator, initialise, removePropertyChangeListener, setPlot, setToolTipGenerator, setURLGenerator
 

Constructor Detail

HighLowRenderer

public HighLowRenderer()
The default constructor.

HighLowRenderer

public HighLowRenderer(XYToolTipGenerator toolTipGenerator)
Creates a new renderer with the specified tool tip generator.
Parameters:
toolTipGenerator - the tool tip generator.
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.
crosshairInfo - information about crosshairs on a plot.