Package org.jfree.chart.plot
Class PiePlotState
java.lang.Object
org.jfree.chart.renderer.RendererState
org.jfree.chart.plot.PiePlotState
A renderer state.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new object for recording temporary state information for a renderer. -
Method Summary
Modifier and TypeMethodDescriptionReturns the exploded pie area.doubleReturns the latest angle.Returns the link area.intReturns the number of passes required by the renderer.Returns the pie area.doubleReturns the x-coordinate of the center of the pie chart.doubleReturns the y-coordinate (in Java2D space) of the center of the pie chart.doubleReturns the vertical pie radius.doubleReturns the horizontal pie radius.doublegetTotal()Returns the total of the values in the dataset.voidSets the exploded pie area.voidsetLatestAngle(double angle) Sets the latest angle.voidsetLinkArea(Rectangle2D area) Sets the label link area.voidsetPassesRequired(int passes) Sets the number of passes required by the renderer.voidsetPieArea(Rectangle2D area) Sets the pie area.voidsetPieCenterX(double x) Sets the x-coordinate of the center of the pie chart.voidsetPieCenterY(double y) Sets the y-coordinate of the center of the pie chart.voidsetPieHRadius(double radius) Sets the vertical pie radius.voidsetPieWRadius(double radius) Sets the horizontal pie radius.voidsetTotal(double total) Sets the total.Methods inherited from class org.jfree.chart.renderer.RendererState
getElementHinting, getEntityCollection, getInfo, setElementHinting
-
Constructor Details
-
PiePlotState
Creates a new object for recording temporary state information for a renderer.- Parameters:
info- the plot rendering info.
-
-
Method Details
-
getPassesRequired
Returns the number of passes required by the renderer.- Returns:
- The number of passes.
-
setPassesRequired
Sets the number of passes required by the renderer.- Parameters:
passes- the passes.
-
getTotal
Returns the total of the values in the dataset.- Returns:
- The total.
-
setTotal
Sets the total.- Parameters:
total- the total.
-
getLatestAngle
Returns the latest angle.- Returns:
- The latest angle.
-
setLatestAngle
Sets the latest angle.- Parameters:
angle- the angle.
-
getPieArea
Returns the pie area.- Returns:
- The pie area.
-
setPieArea
Sets the pie area.- Parameters:
area- the area.
-
getExplodedPieArea
Returns the exploded pie area.- Returns:
- The exploded pie area.
-
setExplodedPieArea
Sets the exploded pie area.- Parameters:
area- the area.
-
getPieCenterX
Returns the x-coordinate of the center of the pie chart.- Returns:
- The x-coordinate (in Java2D space).
-
setPieCenterX
Sets the x-coordinate of the center of the pie chart.- Parameters:
x- the x-coordinate (in Java2D space).
-
getPieCenterY
Returns the y-coordinate (in Java2D space) of the center of the pie chart.- Returns:
- The y-coordinate (in Java2D space).
-
setPieCenterY
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).
-
getLinkArea
Returns the link area. This defines the "dog-leg" point for the label linking lines.- Returns:
- The link area.
-
setLinkArea
Sets the label link area. This defines the "dog-leg" point for the label linking lines.- Parameters:
area- the area.
-
getPieHRadius
Returns the vertical pie radius.- Returns:
- The radius.
-
setPieHRadius
Sets the vertical pie radius.- Parameters:
radius- the radius.
-
getPieWRadius
Returns the horizontal pie radius.- Returns:
- The radius.
-
setPieWRadius
Sets the horizontal pie radius.- Parameters:
radius- the radius.
-