Package org.jfree.chart.renderer
Interface PolarItemRenderer
- All Known Implementing Classes:
DefaultPolarItemRenderer
public interface PolarItemRenderer
The interface for a renderer that can be used by the
PolarPlot
class.-
Method Summary
Modifier and Type Method Description voidaddChangeListener(RendererChangeListener listener)Adds a change listener.voiddrawAngularGridLines(Graphics2D g2, PolarPlot plot, List ticks, Rectangle2D dataArea)Draw the angular gridlines - the spokes.voiddrawRadialGridLines(Graphics2D g2, PolarPlot plot, ValueAxis radialAxis, List ticks, Rectangle2D dataArea)Draw the radial gridlines - the rings.voiddrawSeries(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info, PolarPlot plot, XYDataset dataset, int seriesIndex)Plots the data for a given series.XYToolTipGeneratorgetBaseToolTipGenerator()Returns the base tool tip generator.LegendItemgetLegendItem(int series)Return the legend for the given series.PolarPlotgetPlot()Returns the plot that this renderer has been assigned to.XYToolTipGeneratorgetSeriesToolTipGenerator(int series)Returns the tool tip generator for a series.XYToolTipGeneratorgetToolTipGenerator(int row, int column)Returns the tool tip generator for a data item.XYURLGeneratorgetURLGenerator()Returns the URL generator for HTML image maps.voidremoveChangeListener(RendererChangeListener listener)Removes a change listener.voidsetBaseToolTipGenerator(XYToolTipGenerator generator)Sets the base tool tip generator and sends aRendererChangeEventto all registered listeners.voidsetPlot(PolarPlot plot)Sets the plot that this renderer is assigned to.voidsetSeriesToolTipGenerator(int series, XYToolTipGenerator generator)Sets the tool tip generator for a series and sends aRendererChangeEventto all registered listeners.voidsetURLGenerator(XYURLGenerator urlGenerator)Sets the URL generator for HTML image maps.
-
Method Details
-
drawSeries
void drawSeries(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info, PolarPlot plot, XYDataset dataset, int seriesIndex)Plots the data for a given series.- Parameters:
g2- the drawing surface.dataArea- the data area.info- collects plot rendering info.plot- the plot.dataset- the dataset.seriesIndex- the series index.
-
drawAngularGridLines
Draw the angular gridlines - the spokes.- Parameters:
g2- the drawing surface.plot- the plot.ticks- the ticks.dataArea- the data area.
-
drawRadialGridLines
void drawRadialGridLines(Graphics2D g2, PolarPlot plot, ValueAxis radialAxis, List ticks, Rectangle2D dataArea)Draw the radial gridlines - the rings.- Parameters:
g2- the drawing surface.plot- the plot.radialAxis- the radial axis.ticks- the ticks.dataArea- the data area.
-
getLegendItem
Return the legend for the given series.- Parameters:
series- the series index.- Returns:
- The legend item.
-
getPlot
Returns the plot that this renderer has been assigned to.- Returns:
- The plot.
-
setPlot
Sets the plot that this renderer is assigned to. This method will be called by the plot class...you do not need to call it yourself.- Parameters:
plot- the plot.
-
addChangeListener
Adds a change listener.- Parameters:
listener- the listener.
-
removeChangeListener
Removes a change listener.- Parameters:
listener- the listener.
-
getToolTipGenerator
Returns the tool tip generator for a data item.- Parameters:
row- the row index (zero based).column- the column index (zero based).- Returns:
- The generator (possibly
null).
-
getSeriesToolTipGenerator
Returns the tool tip generator for a series.- Parameters:
series- the series index (zero based).- Returns:
- The generator (possibly
null). - See Also:
setSeriesToolTipGenerator(int, XYToolTipGenerator)
-
setSeriesToolTipGenerator
Sets the tool tip generator for a series and sends aRendererChangeEventto all registered listeners.- Parameters:
series- the series index (zero based).generator- the generator (nullpermitted).- See Also:
getSeriesToolTipGenerator(int)
-
getBaseToolTipGenerator
Returns the base tool tip generator.- Returns:
- The generator (possibly
null). - See Also:
setBaseToolTipGenerator(XYToolTipGenerator)
-
setBaseToolTipGenerator
Sets the base tool tip generator and sends aRendererChangeEventto all registered listeners.- Parameters:
generator- the generator (nullpermitted).- See Also:
getBaseToolTipGenerator()
-
getURLGenerator
Returns the URL generator for HTML image maps.- Returns:
- The URL generator (possibly null).
-
setURLGenerator
Sets the URL generator for HTML image maps.- Parameters:
urlGenerator- the URL generator (null permitted).
-