Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.chart.plot.Plot
org.jfree.chart.plot.PiePlot
org.jfree.chart.plot.PiePlot3D
PieDataset
interface.
Although this class extends PiePlot
, it does not currently support
exploded sections.
Field Summary |
Fields inherited from class org.jfree.chart.plot.PiePlot | |
DEFAULT_INTERIOR_GAP , DEFAULT_LABEL_BACKGROUND_PAINT , DEFAULT_LABEL_FONT , DEFAULT_LABEL_OUTLINE_PAINT , DEFAULT_LABEL_OUTLINE_STROKE , DEFAULT_LABEL_PAINT , DEFAULT_LABEL_SHADOW_PAINT , DEFAULT_MINIMUM_ARC_ANGLE_TO_DRAW , DEFAULT_START_ANGLE , MAX_INTERIOR_GAP , localizationResources |
Fields inherited from class org.jfree.chart.plot.Plot | |
DEFAULT_BACKGROUND_ALPHA , DEFAULT_BACKGROUND_PAINT , DEFAULT_FOREGROUND_ALPHA , DEFAULT_INSETS , DEFAULT_LEGEND_ITEM_BOX , DEFAULT_LEGEND_ITEM_CIRCLE , DEFAULT_OUTLINE_PAINT , DEFAULT_OUTLINE_STROKE , MINIMUM_HEIGHT_TO_DRAW , MINIMUM_WIDTH_TO_DRAW , ZERO |
Constructor Summary | |
| |
|
Method Summary | |
void |
|
protected void |
|
boolean |
|
double |
|
String |
|
void |
|
public PiePlot3D(PieDataset dataset)
Creates a pie chart with a three dimensional effect using the specified dataset.
- Parameters:
dataset
- the dataset (null
permitted).
public void draw(Graphics2D g2, Rectangle2D plotArea, Point2D anchor, 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 theJFreeChart
class, you don't normally need to call it yourself.
- Parameters:
g2
- the graphics device.plotArea
- the area within which the plot should be drawn.anchor
- the anchor point.parentState
- the state from the parent plot, if there is one.info
- collects info about the drawing (null
permitted).
protected void drawSide(Graphics2D g2, Rectangle2D plotArea, Arc2D arc, Area front, Area back, Paint paint, Paint outlinePaint, Stroke outlineStroke, boolean drawFront, boolean drawBack)
Draws the side of a pie section.
- Parameters:
g2
- the graphics device.plotArea
- the plot area.arc
- the arc.front
- the front of the pie.back
- the back of the pie.paint
- the color.outlinePaint
- the outline paint.outlineStroke
- the outline stroke.drawFront
- draw the front?drawBack
- draw the back?
public boolean equals(Object obj)
Tests this plot for equality with an arbitrary object.
- Parameters:
obj
- the object (null
permitted).
- Returns:
- A boolean.
public double getDepthFactor()
Returns the depth factor for the chart.
- Returns:
- The depth factor.
- See Also:
setDepthFactor(double)
public String getPlotType()
Returns a short string describing the type of plot.
- Overrides:
- getPlotType in interface PiePlot
- Returns:
- Pie 3D Plot.
public void setDepthFactor(double factor)
Sets the pie depth as a percentage of the height of the plot area, and sends aPlotChangeEvent
to all registered listeners.
- Parameters:
factor
- the depth factor (for example, 0.20 is twenty percent).
- See Also:
getDepthFactor()