|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.plot.Plot
org.jfree.chart.plot.PiePlot
org.jfree.chart.plot.RingPlot
public class RingPlot
A customised pie plot that leaves a hole in the middle.
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, localizationResources, MAX_INTERIOR_GAP |
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 | |
---|---|
RingPlot()
Creates a new plot with a null dataset. |
|
RingPlot(PieDataset dataset)
Creates a new plot for the specified dataset. |
Method Summary | |
---|---|
protected void |
drawItem(java.awt.Graphics2D g2,
int section,
java.awt.geom.Rectangle2D dataArea,
PiePlotState state,
int currentPass)
Draws a single data item. |
boolean |
equals(java.lang.Object obj)
Tests this plot for equality with an arbitrary object. |
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. |
protected double |
getLabelLinkDepth()
This method overrides the default value for cases where the ring plot is very thin. |
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. |
double |
getSectionDepth()
Returns the depth of each section, expressed as a percentage of the plot radius. |
java.awt.Paint |
getSeparatorPaint()
Returns the separator paint. |
java.awt.Stroke |
getSeparatorStroke()
Returns the separator stroke. |
boolean |
getSeparatorsVisible()
Returns a flag that indicates whether or not separators are drawn between the sections in the chart. |
PiePlotState |
initialise(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
PiePlot plot,
java.lang.Integer index,
PlotRenderingInfo info)
Initialises the plot state (which will store the total of all dataset values, among other things). |
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. |
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. |
void |
setSectionDepth(double sectionDepth)
The section depth is given as percentage of the plot radius. |
void |
setSeparatorPaint(java.awt.Paint paint)
Sets the paint used to draw the separator between sections and sends a PlotChangeEvent to all registered listeners. |
void |
setSeparatorStroke(java.awt.Stroke stroke)
Sets the stroke used to draw the separator between sections and sends a PlotChangeEvent to all registered listeners. |
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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RingPlot()
null
dataset.
public RingPlot(PieDataset dataset)
dataset
- the dataset (null
permitted).Method Detail |
---|
public boolean getSeparatorsVisible()
setSeparatorsVisible(boolean)
public void setSeparatorsVisible(boolean visible)
PlotChangeEvent
to all
registered listeners.
visible
- the flag.getSeparatorsVisible()
public java.awt.Stroke getSeparatorStroke()
null
).setSeparatorStroke(Stroke)
public void setSeparatorStroke(java.awt.Stroke stroke)
PlotChangeEvent
to all registered listeners.
stroke
- the stroke (null
not permitted).getSeparatorStroke()
public java.awt.Paint getSeparatorPaint()
null
).setSeparatorPaint(Paint)
public void setSeparatorPaint(java.awt.Paint paint)
PlotChangeEvent
to all registered listeners.
paint
- the paint (null
not permitted).getSeparatorPaint()
public double getInnerSeparatorExtension()
setInnerSeparatorExtension(double)
public void setInnerSeparatorExtension(double percent)
PlotChangeEvent
to all registered
listeners.
percent
- the percentage.getInnerSeparatorExtension()
,
setOuterSeparatorExtension(double)
public double getOuterSeparatorExtension()
setOuterSeparatorExtension(double)
public void setOuterSeparatorExtension(double percent)
PlotChangeEvent
to all registered
listeners.
percent
- the percentage.getOuterSeparatorExtension()
public double getSectionDepth()
setSectionDepth(double)
public void setSectionDepth(double sectionDepth)
sectionDepth
- the section depth.getSectionDepth()
public PiePlotState initialise(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, PiePlot plot, java.lang.Integer index, PlotRenderingInfo info)
initialise
in class PiePlot
g2
- the graphics device.plotArea
- the plot area (null
not permitted).plot
- the plot.index
- the secondary index (null
for primary
renderer).info
- collects chart rendering information for return to caller.
protected void drawItem(java.awt.Graphics2D g2, int section, java.awt.geom.Rectangle2D dataArea, PiePlotState state, int currentPass)
drawItem
in class PiePlot
g2
- the graphics device (null
not permitted).section
- the section index.dataArea
- the data plot area.state
- state information for one chart.currentPass
- the current pass index.protected double getLabelLinkDepth()
getLabelLinkDepth
in class PiePlot
public boolean equals(java.lang.Object obj)
equals
in class PiePlot
obj
- the object to test against (null
permitted).
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |