public class

PiePlotState

extends RendererState
java.lang.Object
   ↳ org.jfree.chart.renderer.RendererState
     ↳ org.jfree.chart.plot.PiePlotState

Class Overview

A renderer state.

Summary

Public Constructors
PiePlotState(PlotRenderingInfo info)
Creates a new object for recording temporary state information for a renderer.
Public Methods
Rectangle2D getExplodedPieArea()
Returns the exploded pie area.
double getLatestAngle()
Returns the latest angle.
Rectangle2D getLinkArea()
Returns the link area.
int getPassesRequired()
Returns the number of passes required by the renderer.
Rectangle2D getPieArea()
Returns the pie area.
double getPieCenterX()
Returns the x-coordinate of the center of the pie chart.
double getPieCenterY()
Returns the y-coordinate (in Java2D space) of the center of the pie chart.
double getPieHRadius()
Returns the vertical pie radius.
double getPieWRadius()
Returns the horizontal pie radius.
double getTotal()
Returns the total of the values in the dataset.
void setExplodedPieArea(Rectangle2D area)
Sets the exploded pie area.
void setLatestAngle(double angle)
Sets the latest angle.
void setLinkArea(Rectangle2D area)
Sets the label link area.
void setPassesRequired(int passes)
Sets the number of passes required by the renderer.
void setPieArea(Rectangle2D area)
Sets the pie area.
void setPieCenterX(double x)
Sets the x-coordinate of the center of the pie chart.
void setPieCenterY(double y)
Sets the y-coordinate of the center of the pie chart.
void setPieHRadius(double radius)
Sets the vertical pie radius.
void setPieWRadius(double radius)
Sets the horizontal pie radius.
void setTotal(double total)
Sets the total.
[Expand]
Inherited Methods
From class org.jfree.chart.renderer.RendererState
From class java.lang.Object

Public Constructors

public PiePlotState (PlotRenderingInfo info)

Creates a new object for recording temporary state information for a renderer.

Parameters
info the plot rendering info.

Public Methods

public Rectangle2D getExplodedPieArea ()

Returns the exploded pie area.

Returns
  • The exploded pie area.

public double getLatestAngle ()

Returns the latest angle.

Returns
  • The latest angle.

public Rectangle2D getLinkArea ()

Returns the link area. This defines the "dog-leg" point for the label linking lines.

Returns
  • The link area.

public int getPassesRequired ()

Returns the number of passes required by the renderer.

Returns
  • The number of passes.

public Rectangle2D getPieArea ()

Returns the pie area.

Returns
  • The pie area.

public double getPieCenterX ()

Returns the x-coordinate of the center of the pie chart.

Returns
  • The x-coordinate (in Java2D space).

public double getPieCenterY ()

Returns the y-coordinate (in Java2D space) of the center of the pie chart. For the PiePlot3D class, we derive this from the top of the pie.

Returns
  • The y-coordinate (in Java2D space).

public double getPieHRadius ()

Returns the vertical pie radius.

Returns
  • The radius.

public double getPieWRadius ()

Returns the horizontal pie radius.

Returns
  • The radius.

public double getTotal ()

Returns the total of the values in the dataset.

Returns
  • The total.

public void setExplodedPieArea (Rectangle2D area)

Sets the exploded pie area.

Parameters
area the area.

public void setLatestAngle (double angle)

Sets the latest angle.

Parameters
angle the angle.

public void setLinkArea (Rectangle2D area)

Sets the label link area. This defines the "dog-leg" point for the label linking lines.

Parameters
area the area.

public void setPassesRequired (int passes)

Sets the number of passes required by the renderer.

Parameters
passes the passes.

public void setPieArea (Rectangle2D area)

Sets the pie area.

Parameters
area the area.

public void setPieCenterX (double x)

Sets the x-coordinate of the center of the pie chart.

Parameters
x the x-coordinate (in Java2D space).

public void setPieCenterY (double y)

Sets the y-coordinate of the center of the pie chart. This method is used by the plot and typically is not called directly by applications.

Parameters
y the y-coordinate (in Java2D space).

public void setPieHRadius (double radius)

Sets the vertical pie radius.

Parameters
radius the radius.

public void setPieWRadius (double radius)

Sets the horizontal pie radius.

Parameters
radius the radius.

public void setTotal (double total)

Sets the total.

Parameters
total the total.