org.jfree.chart.renderer

Class DefaultPolarItemRenderer

public class DefaultPolarItemRenderer extends AbstractRenderer implements PolarItemRenderer

A renderer that can be used with the PolarPlot class.
Constructor Summary
DefaultPolarItemRenderer()
Creates a new instance of DefaultPolarItemRenderer
Method Summary
Objectclone()
Returns a clone of the renderer.
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.
booleanequals(Object obj)
Tests this renderer for equality with an arbitrary object.
DrawingSuppliergetDrawingSupplier()
Returns the drawing supplier from the plot.
LegendItemgetLegendItem(int series)
Return the legend for the given series.
PolarPlotgetPlot()
Return the plot associated with this renderer.
booleanisSeriesFilled(int series)
Returns true if the renderer should fill the specified series, and false otherwise.
voidsetPlot(PolarPlot plot)
Set the plot associated with this renderer.
voidsetSeriesFilled(int series, boolean filled)
Sets a flag that controls whether or not a series is filled.

Constructor Detail

DefaultPolarItemRenderer

public DefaultPolarItemRenderer()
Creates a new instance of DefaultPolarItemRenderer

Method Detail

clone

public Object clone()
Returns a clone of the renderer.

Returns: A clone.

Throws: CloneNotSupportedException if the renderer cannot be cloned.

drawAngularGridLines

public void drawAngularGridLines(Graphics2D g2, PolarPlot plot, List ticks, Rectangle2D dataArea)
Draw the angular gridlines - the spokes.

Parameters: 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.

Parameters: 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.

Parameters: g2 the drawing surface. dataArea the data area. info collects plot rendering info. plot the plot. dataset the dataset. seriesIndex the series index.

equals

public boolean equals(Object obj)
Tests this renderer for equality with an arbitrary object.

Parameters: obj the object (null not permitted).

Returns: true if this renderer is equal to obj, and false otherwise.

getDrawingSupplier

public DrawingSupplier getDrawingSupplier()
Returns the drawing supplier from the plot.

Returns: The drawing supplier.

getLegendItem

public LegendItem getLegendItem(int series)
Return the legend for the given series.

Parameters: series the series index.

Returns: The legend item.

getPlot

public PolarPlot getPlot()
Return the plot associated with this renderer.

Returns: The plot.

See Also: setPlot

isSeriesFilled

public boolean isSeriesFilled(int series)
Returns true if the renderer should fill the specified series, and false otherwise.

Parameters: series the series index (zero-based).

Returns: A boolean.

setPlot

public void setPlot(PolarPlot plot)
Set the plot associated with this renderer.

Parameters: plot the plot.

See Also: getPlot

setSeriesFilled

public void setSeriesFilled(int series, boolean filled)
Sets a flag that controls whether or not a series is filled.

Parameters: series the series index. filled the flag.