com.jrefinery.chart
Interface XYItemRenderer

All Known Implementing Classes:
AbstractXYItemRenderer, AreaXYItemRenderer, CandlestickRenderer, HighLowRenderer, SignalRenderer, StandardXYItemRenderer, VerticalXYBarRenderer, WindItemRenderer, XYStepRenderer

public interface XYItemRenderer

Interface for rendering the visual representation of a single (x, y) item on an XYPlot.


Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds a property change listener to the renderer.
 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)
          Called for each item to be plotted.
 com.jrefinery.chart.tooltips.XYToolTipGenerator getToolTipGenerator()
          Returns the tool tip generator for the renderer (possibly null).
 void initialise(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, XYPlot plot, XYDataset data, ChartRenderingInfo info)
          Initialises the renderer.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes a property change listener from the renderer.
 void setToolTipGenerator(com.jrefinery.chart.tooltips.XYToolTipGenerator toolTipGenerator)
          Sets the tool tip generator for the renderer.
 

Method Detail

initialise

void initialise(java.awt.Graphics2D g2,
                java.awt.geom.Rectangle2D dataArea,
                XYPlot plot,
                XYDataset data,
                ChartRenderingInfo info)
Initialises the renderer. This method will be called before the first item is rendered, giving the renderer an opportunity to initialise any state information it wants to maintain. The renderer can do nothing if it chooses.

Parameters:
g2 - The graphics device.
dataArea - The area inside the axes.
plot - The plot.
data - The data.
info - An optional info collection object to return data back to the caller.

getToolTipGenerator

com.jrefinery.chart.tooltips.XYToolTipGenerator getToolTipGenerator()
Returns the tool tip generator for the renderer (possibly null).

Returns:
The tool tip generator.

setToolTipGenerator

void setToolTipGenerator(com.jrefinery.chart.tooltips.XYToolTipGenerator toolTipGenerator)
Sets the tool tip generator for the renderer.

Parameters:
toolTipGenerator - The tool tip generator.

drawItem

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)
Called for each item to be plotted.

Parameters:
g2 - The graphics device.
dataArea - The area within which the data is being rendered.
drawInfo - Collects drawing info.
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.

addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a property change listener to the renderer.

Parameters:
listener - The listener.

removePropertyChangeListener

void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change listener from the renderer.

Parameters:
listener - The listener.


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.