Class DefaultPolarItemRenderer

java.lang.Object
org.jfree.chart.renderer.AbstractRenderer
org.jfree.chart.renderer.DefaultPolarItemRenderer
All Implemented Interfaces:
Serializable, Cloneable, PolarItemRenderer

public class DefaultPolarItemRenderer
extends AbstractRenderer
implements PolarItemRenderer
A renderer that can be used with the PolarPlot class.
Author:
Daniel Bridenbecker, Solution Engineering, Inc.
See Also:
Serialized Form
  • Constructor Details

    • DefaultPolarItemRenderer

      public DefaultPolarItemRenderer()
      Creates a new instance of DefaultPolarItemRenderer
  • Method Details

    • getDrawingSupplier

      public DrawingSupplier getDrawingSupplier()
      Returns the drawing supplier from the plot.
      Specified by:
      getDrawingSupplier in class AbstractRenderer
      Returns:
      The drawing supplier.
    • setPlot

      public void setPlot​(PolarPlot plot)
      Set the plot associated with this renderer.
      Specified by:
      setPlot in interface PolarItemRenderer
      Parameters:
      plot - the plot.
    • getPlot

      public PolarPlot getPlot()
      Return the plot associated with this renderer.
      Specified by:
      getPlot in interface PolarItemRenderer
      Returns:
      The plot.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.