Home » JFreeChart PiePlot3D class

JFreeChart PiePlot3D class

by Online Tutorials Library

PiePlot 3DClass

  • PiePlot 3D class also comes under the org.jfree.chart.plot package of JFreeChart library.
  • PiePlot3D class is a subclass of PiePlot class under the same package.
  • Hence, this class has the same features as PiePlot class, except it is used to create 3D plots.

Constructor:

Constructor Description
PiePlot3D( ) This constructor creates a new instance with no dataset.
PiePlot3D(PieDataset dataset) This constructor creates a pie chart with three dimensional effect using a specified dataset.

Method Summary:

Method Description
draw(Graphics2D g2, Rectangle2D plotArea, Point2D anchor, PlotState parentState, PlotRenderingInfo info) This method draws the plot on a Java 2D graphics device (such as the screen or a printer).
drawSide(Graphics2D g2, Rectangle2D plotArea, Arc2D arc, Area front, Area back, Paint paint, Paint outlinePaint, Stroke outlineStroke, boolean drawFront, boolean drawBack) This method draws the side of a pie section.
equals(Object obj) This method tests this plot for equality with an arbitrary object.
getDarkerSides( ) This method returns a flag that controls whether or not the sides of the pie chart are rendered using a darker color.
getDepthFactor( ) This method returns the depth factor for the chart.
getPlotType( ) This method returns a short string describing the type of plot.
setDarkerSides(boolean darker) This method Sets a flag that controls whether or not the sides of the pie chart are rendered using a darker color, and sends a PlotChangeEvent to all registered listeners.
setDepthFactor(double factor) This method Sets the pie depth as a percentage of the height of the plot area, and sends a PlotChangeEvent to all registered listeners.

You may also like