Class PiePlot3D

All Implemented Interfaces:
Serializable, Cloneable, EventListener, AxisChangeListener, DatasetChangeListener

public class PiePlot3D
extends PiePlot
implements Serializable
A plot that displays data in the form of a 3D pie chart, using data from any class that implements the PieDataset interface.

Although this class extends PiePlot, it does not currently support exploded sections.

Author:
Tomer Peretz
See Also:
Serialized Form
  • Constructor Details

    • PiePlot3D

      public PiePlot3D​(PieDataset dataset)
      Creates a pie chart with a three dimensional effect using the specified dataset.
      Parameters:
      dataset - the dataset (null permitted).
  • Method Details

    • setDepthFactor

      public void setDepthFactor​(double factor)
      Sets the pie depth as a percentage of the height of the plot area.
      Parameters:
      factor - the depth factor (for example, 0.20 is twenty percent).
    • getDepthFactor

      public double getDepthFactor()
      The depth factor for the chart.
      Returns:
      The depth factor.
    • draw

      public void draw​(Graphics2D g2, Rectangle2D plotArea, PlotState parentState, PlotRenderingInfo info)
      Draws the plot on a Java 2D graphics device (such as the screen or a printer). This method is called by the JFreeChart class, you don't normally need to call it yourself.
      Overrides:
      draw in class PiePlot
      Parameters:
      g2 - the graphics device.
      plotArea - the area within which the plot should be drawn.
      parentState - the state from the parent plot, if there is one.
      info - collects info about the drawing (null permitted).
    • getPlotType

      public String getPlotType()
      Returns a short string describing the type of plot.
      Overrides:
      getPlotType in class PiePlot
      Returns:
      Pie 3D Plot.