org.jfree.chart.renderer

Class DefaultPolarItemRenderer

Implemented Interfaces:
Cloneable, PolarItemRenderer, Serializable

public class DefaultPolarItemRenderer
extends AbstractRenderer
implements PolarItemRenderer

A renderer that can be used with the PolarPlot class.

Field Summary

Fields inherited from class org.jfree.chart.renderer.AbstractRenderer

DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, DEFAULT_PAINT, DEFAULT_SHAPE, DEFAULT_STROKE, DEFAULT_VALUE_LABEL_FONT, DEFAULT_VALUE_LABEL_PAINT, ZERO

Constructor Summary

DefaultPolarItemRenderer()
Creates a new instance of DefaultPolarItemRenderer

Method Summary

Object
clone()
Returns a clone of the renderer.
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.
boolean
equals(Object obj)
Tests this renderer for equality with an arbitrary object.
DrawingSupplier
getDrawingSupplier()
Returns the drawing supplier from the plot.
LegendItem
getLegendItem(int series)
Return the legend for the given series.
PolarPlot
getPlot()
Return the plot associated with this renderer.
boolean
isSeriesFilled(int series)
Returns true if the renderer should fill the specified series, and false otherwise.
void
setPlot(PolarPlot plot)
Set the plot associated with this renderer.
void
setSeriesFilled(int series, boolean filled)
Sets a flag that controls whether or not a series is filled.

Methods inherited from class org.jfree.chart.renderer.AbstractRenderer

addChangeListener, calculateLabelAnchorPoint, clone, equals, fireChangeEvent, getBaseCreateEntities, getBaseFillPaint, getBaseItemLabelFont, getBaseItemLabelPaint, getBaseItemLabelsVisible, getBaseNegativeItemLabelPosition, getBaseOutlinePaint, getBaseOutlineStroke, getBasePaint, getBasePositiveItemLabelPosition, getBaseSeriesVisible, getBaseSeriesVisibleInLegend, getBaseShape, getBaseStroke, getCreateEntities, getDrawingSupplier, getItemCreateEntity, getItemFillPaint, getItemLabelAnchorOffset, getItemLabelFont, getItemLabelFont, getItemLabelPaint, getItemLabelPaint, getItemOutlinePaint, getItemOutlineStroke, getItemPaint, getItemShape, getItemStroke, getItemVisible, getNegativeItemLabelPosition, getNegativeItemLabelPosition, getPositiveItemLabelPosition, getPositiveItemLabelPosition, getSeriesCreateEntities, getSeriesFillPaint, getSeriesItemLabelFont, getSeriesItemLabelPaint, getSeriesNegativeItemLabelPosition, getSeriesOutlinePaint, getSeriesOutlineStroke, getSeriesPaint, getSeriesPositiveItemLabelPosition, getSeriesShape, getSeriesStroke, getSeriesVisible, getSeriesVisible, getSeriesVisibleInLegend, getSeriesVisibleInLegend, hasListener, hashCode, isItemLabelVisible, isSeriesItemLabelsVisible, isSeriesVisible, isSeriesVisibleInLegend, notifyListeners, removeChangeListener, setBaseCreateEntities, setBaseCreateEntities, setBaseFillPaint, setBaseFillPaint, setBaseItemLabelFont, setBaseItemLabelFont, setBaseItemLabelPaint, setBaseItemLabelPaint, setBaseItemLabelsVisible, setBaseItemLabelsVisible, setBaseItemLabelsVisible, setBaseNegativeItemLabelPosition, setBaseNegativeItemLabelPosition, setBaseOutlinePaint, setBaseOutlinePaint, setBaseOutlineStroke, setBaseOutlineStroke, setBasePaint, setBasePaint, setBasePositiveItemLabelPosition, setBasePositiveItemLabelPosition, setBaseSeriesVisible, setBaseSeriesVisible, setBaseSeriesVisibleInLegend, setBaseSeriesVisibleInLegend, setBaseShape, setBaseShape, setBaseStroke, setBaseStroke, setCreateEntities, setCreateEntities, setFillPaint, setFillPaint, setItemLabelAnchorOffset, setItemLabelFont, setItemLabelFont, setItemLabelPaint, setItemLabelPaint, setItemLabelsVisible, setItemLabelsVisible, setItemLabelsVisible, setNegativeItemLabelPosition, setNegativeItemLabelPosition, setOutlinePaint, setOutlinePaint, setOutlineStroke, setOutlineStroke, setPaint, setPaint, setPositiveItemLabelPosition, setPositiveItemLabelPosition, setSeriesCreateEntities, setSeriesCreateEntities, setSeriesFillPaint, setSeriesFillPaint, setSeriesItemLabelFont, setSeriesItemLabelFont, setSeriesItemLabelPaint, setSeriesItemLabelPaint, setSeriesItemLabelsVisible, setSeriesItemLabelsVisible, setSeriesItemLabelsVisible, setSeriesNegativeItemLabelPosition, setSeriesNegativeItemLabelPosition, setSeriesOutlinePaint, setSeriesOutlinePaint, setSeriesOutlineStroke, setSeriesOutlineStroke, setSeriesPaint, setSeriesPaint, setSeriesPositiveItemLabelPosition, setSeriesPositiveItemLabelPosition, setSeriesShape, setSeriesShape, setSeriesStroke, setSeriesStroke, setSeriesVisible, setSeriesVisible, setSeriesVisible, setSeriesVisible, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setShape, setShape, setStroke, setStroke

Constructor Details

DefaultPolarItemRenderer

public DefaultPolarItemRenderer()
Creates a new instance of DefaultPolarItemRenderer

Method Details

clone

public Object clone()
            throws CloneNotSupportedException
Returns a clone of the renderer.
Overrides:
clone in interface AbstractRenderer
Returns:
A clone.

drawAngularGridLines

public void drawAngularGridLines(Graphics2D g2,
                                 PolarPlot plot,
                                 List ticks,
                                 Rectangle2D dataArea)
Draw the angular gridlines - the spokes.
Specified by:
drawAngularGridLines in interface PolarItemRenderer
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.
Specified by:
drawRadialGridLines in interface PolarItemRenderer
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.
Specified by:
drawSeries in interface PolarItemRenderer
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.
Overrides:
equals in interface AbstractRenderer
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.
Overrides:
getDrawingSupplier in interface AbstractRenderer
Returns:
The drawing supplier.

getLegendItem

public LegendItem getLegendItem(int series)
Return the legend for the given series.
Specified by:
getLegendItem in interface PolarItemRenderer
Parameters:
series - the series index.
Returns:
The legend item.

getPlot

public PolarPlot getPlot()
Return the plot associated with this renderer.
Specified by:
getPlot in interface PolarItemRenderer
Returns:
The plot.

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.
Specified by:
setPlot in interface PolarItemRenderer
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.