|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.chart.AbstractRenderer | +--com.jrefinery.chart.AbstractXYItemRenderer
A base class that can be used to create new XYItemRenderer implementations.
Constructor Summary | |
protected |
AbstractXYItemRenderer()
Default constructor. |
protected |
AbstractXYItemRenderer(XYToolTipGenerator toolTipGenerator)
Creates a renderer with the specified tooltip generator. |
protected |
AbstractXYItemRenderer(XYToolTipGenerator toolTipGenerator,
XYURLGenerator urlGenerator)
Creates a renderer with the specified tooltip generator and URL generator. |
protected |
AbstractXYItemRenderer(XYURLGenerator urlGenerator)
Creates a renderer with the specified tooltip generator. |
Method Summary | |
void |
drawDomainMarker(java.awt.Graphics2D g2,
XYPlot plot,
ValueAxis domainAxis,
Marker marker,
java.awt.geom.Rectangle2D dataArea)
Draws a vertical line on the chart to represent a 'range marker'. |
void |
drawRangeMarker(java.awt.Graphics2D g2,
XYPlot plot,
ValueAxis rangeAxis,
Marker marker,
java.awt.geom.Rectangle2D dataArea)
Draws a horizontal line across the chart to represent a 'range marker'. |
LegendItem |
getLegendItem(int series)
Returns a legend item for a series. |
XYPlot |
getPlot()
Returns the plot that this renderer has been assigned to. |
XYToolTipGenerator |
getToolTipGenerator()
Returns the tool tip generator. |
XYURLGenerator |
getURLGenerator()
Returns the URL generator for HTML image maps. |
void |
initialise(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
XYPlot plot,
XYDataset data,
ChartRenderingInfo info)
Initialises the renderer. |
void |
setPlot(XYPlot plot)
Sets the plot that this renderer has been assigned to. |
void |
setToolTipGenerator(XYToolTipGenerator generator)
Sets the tool tip generator. |
void |
setURLGenerator(XYURLGenerator urlGenerator)
Sets the URL generator for HTML image maps. |
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, drawItem, removePropertyChangeListener |
Constructor Detail |
protected AbstractXYItemRenderer()
protected AbstractXYItemRenderer(XYToolTipGenerator toolTipGenerator)
Storage is allocated for property change listeners.
toolTipGenerator
- the tooltip generator (null permitted).protected AbstractXYItemRenderer(XYURLGenerator urlGenerator)
Storage is allocated for property change listeners.
urlGenerator
- the URL generator (null permitted).protected AbstractXYItemRenderer(XYToolTipGenerator toolTipGenerator, XYURLGenerator urlGenerator)
Storage is allocated for property change listeners.
toolTipGenerator
- the tooltip generator (null permitted).urlGenerator
- the URL generator (null permitted).Method Detail |
public XYPlot getPlot()
getPlot
in interface XYItemRenderer
public void setPlot(XYPlot plot)
setPlot
in interface XYItemRenderer
plot
- the plot.public void initialise(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, XYPlot plot, XYDataset data, ChartRenderingInfo info)
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.
initialise
in interface XYItemRenderer
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.public XYToolTipGenerator getToolTipGenerator()
getToolTipGenerator
in interface XYItemRenderer
public void setToolTipGenerator(XYToolTipGenerator generator)
setToolTipGenerator
in interface XYItemRenderer
generator
- the tool tip generator (null permitted).public XYURLGenerator getURLGenerator()
getURLGenerator
in interface XYItemRenderer
public void setURLGenerator(XYURLGenerator urlGenerator)
setURLGenerator
in interface XYItemRenderer
urlGenerator
- the URL generator (null permitted).public LegendItem getLegendItem(int series)
getLegendItem
in interface XYItemRenderer
series
- the series (zero-based index).public void drawDomainMarker(java.awt.Graphics2D g2, XYPlot plot, ValueAxis domainAxis, Marker marker, java.awt.geom.Rectangle2D dataArea)
drawDomainMarker
in interface XYItemRenderer
g2
- the graphics device.plot
- the plot.domainAxis
- the domain axis.marker
- the marker line.dataArea
- the axis data area.public void drawRangeMarker(java.awt.Graphics2D g2, XYPlot plot, ValueAxis rangeAxis, Marker marker, java.awt.geom.Rectangle2D dataArea)
drawRangeMarker
in interface XYItemRenderer
g2
- the graphics device.plot
- the plot.rangeAxis
- the range axis.marker
- the marker line.dataArea
- the axis data area.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |