public class PiePlotState extends RendererState
Constructor and Description |
---|
PiePlotState(PlotRenderingInfo info)
Creates a new object for recording temporary state information for a
renderer.
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getExplodedPieArea()
Returns the exploded pie area.
|
double |
getLatestAngle()
Returns the latest angle.
|
java.awt.geom.Rectangle2D |
getLinkArea()
Returns the link area.
|
int |
getPassesRequired()
Returns the number of passes required by the renderer.
|
java.awt.geom.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(java.awt.geom.Rectangle2D area)
Sets the exploded pie area.
|
void |
setLatestAngle(double angle)
Sets the latest angle.
|
void |
setLinkArea(java.awt.geom.Rectangle2D area)
Sets the label link area.
|
void |
setPassesRequired(int passes)
Sets the number of passes required by the renderer.
|
void |
setPieArea(java.awt.geom.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.
|
getEntityCollection, getInfo
public PiePlotState(PlotRenderingInfo info)
info
- the plot rendering info.public int getPassesRequired()
public void setPassesRequired(int passes)
passes
- the passes.public double getTotal()
public void setTotal(double total)
total
- the total.public double getLatestAngle()
public void setLatestAngle(double angle)
angle
- the angle.public java.awt.geom.Rectangle2D getPieArea()
public void setPieArea(java.awt.geom.Rectangle2D area)
area
- the area.public java.awt.geom.Rectangle2D getExplodedPieArea()
public void setExplodedPieArea(java.awt.geom.Rectangle2D area)
area
- the area.public double getPieCenterX()
public void setPieCenterX(double x)
x
- the x-coordinate (in Java2D space).public double getPieCenterY()
PiePlot3D
class, we derive this from the top of
the pie.public void setPieCenterY(double y)
y
- the y-coordinate (in Java2D space).public java.awt.geom.Rectangle2D getLinkArea()
public void setLinkArea(java.awt.geom.Rectangle2D area)
area
- the area.public double getPieHRadius()
public void setPieHRadius(double radius)
radius
- the radius.public double getPieWRadius()
public void setPieWRadius(double radius)
radius
- the radius.