| java.lang.Object org.jfree.chart.plot.Plot org.jfree.chart.plot.PiePlot org.jfree.chart.plot.RingPlot
Constructor Summary | |
public | RingPlot() Creates a new plot with a null dataset. | public | RingPlot(PieDataset dataset) Creates a new plot for the specified dataset. |
Method Summary | |
protected void | drawItem(Graphics2D g2, int section, Rectangle2D dataArea, PiePlotState state, int currentPass) Draws a single data item. | public boolean | equals(Object obj) Tests this plot for equality with an arbitrary object.
Parameters: obj - the object to test against (null permitted). | public double | getInnerSeparatorExtension() Returns the length of the inner extension of the separator line that
is drawn between sections, expressed as a percentage of the depth of
the section. | public double | getOuterSeparatorExtension() Returns the length of the outer extension of the separator line that
is drawn between sections, expressed as a percentage of the depth of
the section. | public double | getSectionDepth() Returns the depth of each section, expressed as a percentage of the
plot radius. | public Paint | getSeparatorPaint() Returns the separator paint. | public Stroke | getSeparatorStroke() Returns the separator stroke. | public boolean | getSeparatorsVisible() Returns a flag that indicates whether or not separators are drawn between
the sections in the chart. | public PiePlotState | initialise(Graphics2D g2, Rectangle2D plotArea, PiePlot plot, Integer index, PlotRenderingInfo info) Initialises the plot state (which will store the total of all dataset
values, among other things). | public void | setInnerSeparatorExtension(double percent) Sets the length of the inner extension of the separator line that is
drawn between sections, as a percentage of the depth of the
sections, and sends a
PlotChangeEvent to all registered
listeners. | public void | setOuterSeparatorExtension(double percent) Sets the length of the outer extension of the separator line that is
drawn between sections, as a percentage of the depth of the
sections, and sends a
PlotChangeEvent to all registered
listeners. | public void | setSectionDepth(double sectionDepth) The section depth is given as percentage of the plot radius. | public void | setSeparatorPaint(Paint paint) Sets the paint used to draw the separator between sections and sends a
PlotChangeEvent to all registered listeners. | public void | setSeparatorStroke(Stroke stroke) Sets the stroke used to draw the separator between sections and sends
a
PlotChangeEvent to all registered listeners. | public void | setSeparatorsVisible(boolean visible) Sets the flag that controls whether or not separators are drawn between
the sections in the chart, and sends a
PlotChangeEvent to all
registered listeners. |
RingPlot | public RingPlot()(Code) | | Creates a new plot with a null dataset.
|
RingPlot | public RingPlot(PieDataset dataset)(Code) | | Creates a new plot for the specified dataset.
Parameters: dataset - the dataset (null permitted). |
drawItem | protected void drawItem(Graphics2D g2, int section, Rectangle2D dataArea, PiePlotState state, int currentPass)(Code) | | Draws a single data item.
Parameters: g2 - the graphics device (null not permitted). Parameters: section - the section index. Parameters: dataArea - the data plot area. Parameters: state - state information for one chart. Parameters: currentPass - the current pass index. |
equals | public boolean equals(Object obj)(Code) | | Tests this plot for equality with an arbitrary object.
Parameters: obj - the object to test against (null permitted). A boolean. |
getInnerSeparatorExtension | public double getInnerSeparatorExtension()(Code) | | Returns the length of the inner extension of the separator line that
is drawn between sections, expressed as a percentage of the depth of
the section.
The inner separator extension (as a percentage). See Also: RingPlot.setInnerSeparatorExtension(double) |
getOuterSeparatorExtension | public double getOuterSeparatorExtension()(Code) | | Returns the length of the outer extension of the separator line that
is drawn between sections, expressed as a percentage of the depth of
the section.
The outer separator extension (as a percentage). See Also: RingPlot.setOuterSeparatorExtension(double) |
getSectionDepth | public double getSectionDepth()(Code) | | Returns the depth of each section, expressed as a percentage of the
plot radius.
The depth of each section. See Also: RingPlot.setSectionDepth(double) since: 1.0.3 |
getSeparatorsVisible | public boolean getSeparatorsVisible()(Code) | | Returns a flag that indicates whether or not separators are drawn between
the sections in the chart.
A boolean. See Also: RingPlot.setSeparatorsVisible(boolean) |
initialise | public PiePlotState initialise(Graphics2D g2, Rectangle2D plotArea, PiePlot plot, Integer index, PlotRenderingInfo info)(Code) | | Initialises the plot state (which will store the total of all dataset
values, among other things). This method is called once at the
beginning of each drawing.
Parameters: g2 - the graphics device. Parameters: plotArea - the plot area (null not permitted). Parameters: plot - the plot. Parameters: index - the secondary index (null for primary renderer). Parameters: info - collects chart rendering information for return to caller. A state object (maintains state information relevant to one chart drawing). |
setOuterSeparatorExtension | public void setOuterSeparatorExtension(double percent)(Code) | | Sets the length of the outer extension of the separator line that is
drawn between sections, as a percentage of the depth of the
sections, and sends a
PlotChangeEvent to all registered
listeners.
Parameters: percent - the percentage. See Also: RingPlot.getOuterSeparatorExtension() |
setSectionDepth | public void setSectionDepth(double sectionDepth)(Code) | | The section depth is given as percentage of the plot radius.
Specifying 1.0 results in a straightforward pie chart.
Parameters: sectionDepth - the section depth. See Also: RingPlot.getSectionDepth() since: 1.0.3 |
setSeparatorPaint | public void setSeparatorPaint(Paint paint)(Code) | | Sets the paint used to draw the separator between sections and sends a
PlotChangeEvent to all registered listeners.
Parameters: paint - the paint (null not permitted). See Also: RingPlot.getSeparatorPaint() |
setSeparatorsVisible | public void setSeparatorsVisible(boolean visible)(Code) | | Sets the flag that controls whether or not separators are drawn between
the sections in the chart, and sends a
PlotChangeEvent to all
registered listeners.
Parameters: visible - the flag. See Also: RingPlot.getSeparatorsVisible() |
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)
|
|
|