public class

DefaultPolarItemRenderer

extends AbstractRenderer
implements PolarItemRenderer
java.lang.Object
   ↳ org.jfree.chart.renderer.AbstractRenderer
     ↳ org.jfree.chart.renderer.DefaultPolarItemRenderer

Class Overview

A renderer that can be used with the PolarPlot class.

Summary

[Expand]
Inherited Fields
From class org.jfree.chart.renderer.AbstractRenderer
Public Constructors
DefaultPolarItemRenderer()
Creates a new instance of DefaultPolarItemRenderer
Public Methods
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.
[Expand]
Inherited Methods
From class org.jfree.chart.renderer.AbstractRenderer
From class java.lang.Object
From interface org.jfree.chart.renderer.PolarItemRenderer

Public Constructors

public DefaultPolarItemRenderer ()

Creates a new instance of DefaultPolarItemRenderer

Public Methods

public Object clone ()

Returns a clone of the renderer.

Returns
  • A clone.
Throws
CloneNotSupportedException if the renderer cannot be cloned.

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.

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.

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.

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.

public DrawingSupplier getDrawingSupplier ()

Returns the drawing supplier from the plot.

Returns
  • The drawing supplier.

public LegendItem getLegendItem (int series)

Return the legend for the given series.

Parameters
series the series index.
Returns
  • The legend item.

public PolarPlot getPlot ()

Return the plot associated with this renderer.

Returns
  • The plot.

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.

public void setPlot (PolarPlot plot)

Set the plot associated with this renderer.

Parameters
plot the plot.
See Also

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.