org.jfree.chart.renderer
Interface PolarItemRenderer
- DefaultPolarItemRenderer
The interface for a renderer that can be used by the
PolarPlot
class.
void | addChangeListener(RendererChangeListener listener) - Adds a change listener.
|
void | drawAngularGridLines(Graphics2D g2, PolarPlot plot, List ticks, Rectangle2D dataArea) - Draw the angular gridlines - the spokes.
|
void | drawRadialGridLines(Graphics2D g2, PolarPlot plot, ValueAxis radialAxis, List ticks, Rectangle2D dataArea) - Draw the radial gridlines - the rings.
|
void | drawSeries(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info, PolarPlot plot, XYDataset dataset, int seriesIndex) - Plots the data for a given series.
|
LegendItem | getLegendItem(int series) - Return the legend for the given series.
|
PolarPlot | getPlot() - Returns the plot that this renderer has been assigned to.
|
void | removeChangeListener(RendererChangeListener listener) - Removes a change listener.
|
void | setPlot(PolarPlot plot) - Sets the plot that this renderer is assigned to.
|
drawAngularGridLines
public void drawAngularGridLines(Graphics2D g2,
PolarPlot plot,
List ticks,
Rectangle2D dataArea)
Draw the angular gridlines - the spokes.
g2
- the drawing surface.plot
- the plot.ticks
- the ticks.dataArea
- the data area.
drawRadialGridLines
public void drawRadialGridLines(Graphics2D g2,
PolarPlot plot,
ValueAxis radialAxis,
List ticks,
Rectangle2D dataArea)
Draw the radial gridlines - the rings.
g2
- the drawing surface.plot
- the plot.radialAxis
- the radial axis.ticks
- the ticks.dataArea
- the data area.
drawSeries
public void drawSeries(Graphics2D g2,
Rectangle2D dataArea,
PlotRenderingInfo info,
PolarPlot plot,
XYDataset dataset,
int seriesIndex)
Plots the data for a given series.
g2
- the drawing surface.dataArea
- the data area.info
- collects plot rendering info.plot
- the plot.dataset
- the dataset.seriesIndex
- the series index.
getLegendItem
public LegendItem getLegendItem(int series)
Return the legend for the given series.
series
- the series index.
getPlot
public PolarPlot getPlot()
Returns the plot that this renderer has been assigned to.
setPlot
public void setPlot(PolarPlot plot)
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.