| java.lang.Object org.jfree.chart.plot.Plot org.jfree.chart.plot.PiePlot org.jfree.chart.plot.PiePlot3D
PiePlot3D | public class PiePlot3D extends PiePlot implements Serializable(Code) | | A plot that displays data in the form of a 3D pie chart, using data from
any class that implements the
PieDataset interface.
Although this class extends
PiePlot , it does not currently support
exploded sections.
|
Constructor Summary | |
public | PiePlot3D() Creates a new instance with no dataset. | public | PiePlot3D(PieDataset dataset) Creates a pie chart with a three dimensional effect using the specified
dataset. |
Method Summary | |
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). | 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. | public boolean | equals(Object obj) Tests this plot for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | public double | getDepthFactor() Returns the depth factor for the chart. | public String | getPlotType() Returns a short string describing the type of plot. | public void | setDepthFactor(double factor) Sets the pie depth as a percentage of the height of the plot area, and
sends a
PlotChangeEvent to all registered listeners. |
PiePlot3D | public PiePlot3D()(Code) | | Creates a new instance with no dataset.
|
PiePlot3D | public PiePlot3D(PieDataset dataset)(Code) | | Creates a pie chart with a three dimensional effect using the specified
dataset.
Parameters: dataset - the dataset (null permitted). |
draw | public void draw(Graphics2D g2, Rectangle2D plotArea, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code) | | Draws the plot on a Java 2D graphics device (such as the screen or a
printer). This method is called by the
org.jfree.chart.JFreeChart class, you don't normally need
to call it yourself.
Parameters: g2 - the graphics device. Parameters: plotArea - the area within which the plot should be drawn. Parameters: anchor - the anchor point. Parameters: parentState - the state from the parent plot, if there is one. Parameters: info - collects info about the drawing (null permitted). |
drawSide | protected void drawSide(Graphics2D g2, Rectangle2D plotArea, Arc2D arc, Area front, Area back, Paint paint, Paint outlinePaint, Stroke outlineStroke, boolean drawFront, boolean drawBack)(Code) | | Draws the side of a pie section.
Parameters: g2 - the graphics device. Parameters: plotArea - the plot area. Parameters: arc - the arc. Parameters: front - the front of the pie. Parameters: back - the back of the pie. Parameters: paint - the color. Parameters: outlinePaint - the outline paint. Parameters: outlineStroke - the outline stroke. Parameters: drawFront - draw the front? Parameters: drawBack - draw the back? |
equals | public boolean equals(Object obj)(Code) | | Tests this plot for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
getPlotType | public String getPlotType()(Code) | | Returns a short string describing the type of plot.
Pie 3D Plot. |
setDepthFactor | public void setDepthFactor(double factor)(Code) | | Sets the pie depth as a percentage of the height of the plot area, and
sends a
PlotChangeEvent to all registered listeners.
Parameters: factor - the depth factor (for example, 0.20 is twenty percent). See Also: PiePlot3D.getDepthFactor() |
Methods inherited from org.jfree.chart.plot.PiePlot | public Object clone() throws CloneNotSupportedException(Code)(Java Doc) public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code)(Java Doc) protected void drawItem(Graphics2D g2, int section, Rectangle2D dataArea, PiePlotState state, int currentPass)(Code)(Java Doc) protected void drawLabels(Graphics2D g2, List keys, double totalValue, Rectangle2D plotArea, Rectangle2D linkArea, PiePlotState state)(Code)(Java Doc) protected void drawLeftLabel(Graphics2D g2, PiePlotState state, PieLabelRecord record)(Code)(Java Doc) protected void drawLeftLabels(KeyedValues leftKeys, Graphics2D g2, Rectangle2D plotArea, Rectangle2D linkArea, float maxLabelWidth, PiePlotState state)(Code)(Java Doc) protected void drawPie(Graphics2D g2, Rectangle2D plotArea, PlotRenderingInfo info)(Code)(Java Doc) protected void drawRightLabel(Graphics2D g2, PiePlotState state, PieLabelRecord record)(Code)(Java Doc) protected void drawRightLabels(KeyedValues keys, Graphics2D g2, Rectangle2D plotArea, Rectangle2D linkArea, float maxLabelWidth, PiePlotState state)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) protected Rectangle2D getArcBounds(Rectangle2D unexploded, Rectangle2D exploded, double angle, double extent, double explodePercent)(Code)(Java Doc) public Paint getBaseSectionOutlinePaint()(Code)(Java Doc) public Stroke getBaseSectionOutlineStroke()(Code)(Java Doc) public Paint getBaseSectionPaint()(Code)(Java Doc) public PieDataset getDataset()(Code)(Java Doc) public Rotation getDirection()(Code)(Java Doc) public double getExplodePercent(Comparable key)(Code)(Java Doc) public double getExplodePercent(int section)(Code)(Java Doc) public boolean getIgnoreNullValues()(Code)(Java Doc) public boolean getIgnoreZeroValues()(Code)(Java Doc) public double getInteriorGap()(Code)(Java Doc) public Paint getLabelBackgroundPaint()(Code)(Java Doc) public AbstractPieLabelDistributor getLabelDistributor()(Code)(Java Doc) public Font getLabelFont()(Code)(Java Doc) public double getLabelGap()(Code)(Java Doc) public PieSectionLabelGenerator getLabelGenerator()(Code)(Java Doc) public double getLabelLinkMargin()(Code)(Java Doc) public Paint getLabelLinkPaint()(Code)(Java Doc) public Stroke getLabelLinkStroke()(Code)(Java Doc) public boolean getLabelLinksVisible()(Code)(Java Doc) public Paint getLabelOutlinePaint()(Code)(Java Doc) public Stroke getLabelOutlineStroke()(Code)(Java Doc) public Paint getLabelPaint()(Code)(Java Doc) public Paint getLabelShadowPaint()(Code)(Java Doc) public Shape getLegendItemShape()(Code)(Java Doc) public LegendItemCollection getLegendItems()(Code)(Java Doc) public PieSectionLabelGenerator getLegendLabelGenerator()(Code)(Java Doc) public PieSectionLabelGenerator getLegendLabelToolTipGenerator()(Code)(Java Doc) public PieURLGenerator getLegendLabelURLGenerator()(Code)(Java Doc) public double getMaximumExplodePercent()(Code)(Java Doc) public double getMaximumLabelWidth()(Code)(Java Doc) public double getMinimumArcAngleToDraw()(Code)(Java Doc) public int getPieIndex()(Code)(Java Doc) public String getPlotType()(Code)(Java Doc) protected Comparable getSectionKey(int section)(Code)(Java Doc) public Paint getSectionOutlinePaint()(Code)(Java Doc) public Paint getSectionOutlinePaint(Comparable key)(Code)(Java Doc) public Paint getSectionOutlinePaint(int section)(Code)(Java Doc) public Stroke getSectionOutlineStroke()(Code)(Java Doc) public Stroke getSectionOutlineStroke(Comparable key)(Code)(Java Doc) public Stroke getSectionOutlineStroke(int section)(Code)(Java Doc) public boolean getSectionOutlinesVisible()(Code)(Java Doc) public Paint getSectionPaint()(Code)(Java Doc) public Paint getSectionPaint(Comparable key)(Code)(Java Doc) public Paint getSectionPaint(int section)(Code)(Java Doc) public Paint getShadowPaint()(Code)(Java Doc) public double getShadowXOffset()(Code)(Java Doc) public double getShadowYOffset()(Code)(Java Doc) public double getStartAngle()(Code)(Java Doc) public PieToolTipGenerator getToolTipGenerator()(Code)(Java Doc) public PieURLGenerator getURLGenerator()(Code)(Java Doc) public PiePlotState initialise(Graphics2D g2, Rectangle2D plotArea, PiePlot plot, Integer index, PlotRenderingInfo info)(Code)(Java Doc) public boolean isCircular()(Code)(Java Doc) protected Paint lookupSectionOutlinePaint(Comparable key)(Code)(Java Doc) protected Paint lookupSectionOutlinePaint(Comparable key, boolean autoPopulate)(Code)(Java Doc) protected Stroke lookupSectionOutlineStroke(Comparable key)(Code)(Java Doc) protected Stroke lookupSectionOutlineStroke(Comparable key, boolean autoPopulate)(Code)(Java Doc) protected Paint lookupSectionPaint(Comparable key)(Code)(Java Doc) protected Paint lookupSectionPaint(Comparable key, boolean autoPopulate)(Code)(Java Doc) public void setBaseSectionOutlinePaint(Paint paint)(Code)(Java Doc) public void setBaseSectionOutlineStroke(Stroke stroke)(Code)(Java Doc) public void setBaseSectionPaint(Paint paint)(Code)(Java Doc) public void setCircular(boolean flag)(Code)(Java Doc) public void setCircular(boolean circular, boolean notify)(Code)(Java Doc) public void setDataset(PieDataset dataset)(Code)(Java Doc) public void setDirection(Rotation direction)(Code)(Java Doc) public void setExplodePercent(Comparable key, double percent)(Code)(Java Doc) public void setExplodePercent(int section, double percent)(Code)(Java Doc) public void setIgnoreNullValues(boolean flag)(Code)(Java Doc) public void setIgnoreZeroValues(boolean flag)(Code)(Java Doc) public void setInteriorGap(double percent)(Code)(Java Doc) public void setLabelBackgroundPaint(Paint paint)(Code)(Java Doc) public void setLabelDistributor(AbstractPieLabelDistributor distributor)(Code)(Java Doc) public void setLabelFont(Font font)(Code)(Java Doc) public void setLabelGap(double gap)(Code)(Java Doc) public void setLabelGenerator(PieSectionLabelGenerator generator)(Code)(Java Doc) public void setLabelLinkMargin(double margin)(Code)(Java Doc) public void setLabelLinkPaint(Paint paint)(Code)(Java Doc) public void setLabelLinkStroke(Stroke stroke)(Code)(Java Doc) public void setLabelLinksVisible(boolean visible)(Code)(Java Doc) public void setLabelOutlinePaint(Paint paint)(Code)(Java Doc) public void setLabelOutlineStroke(Stroke stroke)(Code)(Java Doc) public void setLabelPaint(Paint paint)(Code)(Java Doc) public void setLabelShadowPaint(Paint paint)(Code)(Java Doc) public void setLegendItemShape(Shape shape)(Code)(Java Doc) public void setLegendLabelGenerator(PieSectionLabelGenerator generator)(Code)(Java Doc) public void setLegendLabelToolTipGenerator(PieSectionLabelGenerator generator)(Code)(Java Doc) public void setLegendLabelURLGenerator(PieURLGenerator generator)(Code)(Java Doc) public void setMaximumLabelWidth(double width)(Code)(Java Doc) public void setMinimumArcAngleToDraw(double angle)(Code)(Java Doc) public void setPieIndex(int index)(Code)(Java Doc) public void setSectionOutlinePaint(Paint paint)(Code)(Java Doc) public void setSectionOutlinePaint(Comparable key, Paint paint)(Code)(Java Doc) public void setSectionOutlinePaint(int section, Paint paint)(Code)(Java Doc) public void setSectionOutlineStroke(Stroke stroke)(Code)(Java Doc) public void setSectionOutlineStroke(Comparable key, Stroke stroke)(Code)(Java Doc) public void setSectionOutlineStroke(int section, Stroke stroke)(Code)(Java Doc) public void setSectionOutlinesVisible(boolean visible)(Code)(Java Doc) public void setSectionPaint(Paint paint)(Code)(Java Doc) public void setSectionPaint(Comparable key, Paint paint)(Code)(Java Doc) public void setSectionPaint(int section, Paint paint)(Code)(Java Doc) public void setShadowPaint(Paint paint)(Code)(Java Doc) public void setShadowXOffset(double offset)(Code)(Java Doc) public void setShadowYOffset(double offset)(Code)(Java Doc) public void setStartAngle(double angle)(Code)(Java Doc) public void setToolTipGenerator(PieToolTipGenerator generator)(Code)(Java Doc) public void setURLGenerator(PieURLGenerator generator)(Code)(Java Doc)
|
Methods inherited from org.jfree.chart.plot.Plot | public void addChangeListener(PlotChangeListener listener)(Code)(Java Doc) public void axisChanged(AxisChangeEvent event)(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) public void datasetChanged(DatasetChangeEvent event)(Code)(Java Doc) abstract public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code)(Java Doc) public void drawBackground(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) public void drawBackgroundImage(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) protected void drawNoDataMessage(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) public void drawOutline(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) protected void fillBackground(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) protected void fillBackground(Graphics2D g2, Rectangle2D area, PlotOrientation orientation)(Code)(Java Doc) public float getBackgroundAlpha()(Code)(Java Doc) public Image getBackgroundImage()(Code)(Java Doc) public int getBackgroundImageAlignment()(Code)(Java Doc) public float getBackgroundImageAlpha()(Code)(Java Doc) public Paint getBackgroundPaint()(Code)(Java Doc) public DatasetGroup getDatasetGroup()(Code)(Java Doc) public DrawingSupplier getDrawingSupplier()(Code)(Java Doc) public float getForegroundAlpha()(Code)(Java Doc) public RectangleInsets getInsets()(Code)(Java Doc) public LegendItemCollection getLegendItems()(Code)(Java Doc) public String getNoDataMessage()(Code)(Java Doc) public Font getNoDataMessageFont()(Code)(Java Doc) public Paint getNoDataMessagePaint()(Code)(Java Doc) public Paint getOutlinePaint()(Code)(Java Doc) public Stroke getOutlineStroke()(Code)(Java Doc) public Plot getParent()(Code)(Java Doc) abstract public String getPlotType()(Code)(Java Doc) protected double getRectX(double x, double w1, double w2, RectangleEdge edge)(Code)(Java Doc) protected double getRectY(double y, double h1, double h2, RectangleEdge edge)(Code)(Java Doc) public Plot getRootPlot()(Code)(Java Doc) public void handleClick(int x, int y, PlotRenderingInfo info)(Code)(Java Doc) public boolean isOutlineVisible()(Code)(Java Doc) public boolean isSubplot()(Code)(Java Doc) public void markerChanged(MarkerChangeEvent event)(Code)(Java Doc) public void notifyListeners(PlotChangeEvent event)(Code)(Java Doc) public void removeChangeListener(PlotChangeListener listener)(Code)(Java Doc) public static RectangleEdge resolveDomainAxisLocation(AxisLocation location, PlotOrientation orientation)(Code)(Java Doc) public static RectangleEdge resolveRangeAxisLocation(AxisLocation location, PlotOrientation orientation)(Code)(Java Doc) public void setBackgroundAlpha(float alpha)(Code)(Java Doc) public void setBackgroundImage(Image image)(Code)(Java Doc) public void setBackgroundImageAlignment(int alignment)(Code)(Java Doc) public void setBackgroundImageAlpha(float alpha)(Code)(Java Doc) public void setBackgroundPaint(Paint paint)(Code)(Java Doc) protected void setDatasetGroup(DatasetGroup group)(Code)(Java Doc) public void setDrawingSupplier(DrawingSupplier supplier)(Code)(Java Doc) public void setForegroundAlpha(float alpha)(Code)(Java Doc) public void setInsets(RectangleInsets insets)(Code)(Java Doc) public void setInsets(RectangleInsets insets, boolean notify)(Code)(Java Doc) public void setNoDataMessage(String message)(Code)(Java Doc) public void setNoDataMessageFont(Font font)(Code)(Java Doc) public void setNoDataMessagePaint(Paint paint)(Code)(Java Doc) public void setOutlinePaint(Paint paint)(Code)(Java Doc) public void setOutlineStroke(Stroke stroke)(Code)(Java Doc) public void setOutlineVisible(boolean visible)(Code)(Java Doc) public void setParent(Plot parent)(Code)(Java Doc) public void zoom(double percent)(Code)(Java Doc)
|
|
|