|
||||||||||
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
A plot that displays data in the form of a pie chart, using data from any
class that implements the PieDataset
interface.
Special notes:
PieDataset
from a
CategoryDataset
;
Plot
,
PieDataset
,
Serialized FormField Summary | |
static double |
DEFAULT_INTERIOR_GAP
The default interior gap. |
static java.awt.Paint |
DEFAULT_LABEL_BACKGROUND_PAINT
The default section label background paint. |
static java.awt.Font |
DEFAULT_LABEL_FONT
The default section label font. |
static java.awt.Paint |
DEFAULT_LABEL_OUTLINE_PAINT
The default section label outline paint. |
static java.awt.Stroke |
DEFAULT_LABEL_OUTLINE_STROKE
The default section label outline stroke. |
static java.awt.Paint |
DEFAULT_LABEL_PAINT
The default section label paint. |
static java.awt.Paint |
DEFAULT_LABEL_SHADOW_PAINT
The default section label shadow paint. |
static double |
DEFAULT_MINIMUM_ARC_ANGLE_TO_DRAW
The default minimum arc angle to draw. |
static double |
DEFAULT_START_ANGLE
The default starting angle for the pie chart. |
protected static java.util.ResourceBundle |
localizationResources
The resourceBundle for the localization. |
static double |
MAX_INTERIOR_GAP
The maximum interior gap (currently 40%). |
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 | |
PiePlot()
Creates a new plot. |
|
PiePlot(PieDataset dataset)
Creates a plot that will draw a pie chart for the specified dataset. |
Method Summary | |
java.lang.Object |
clone()
Returns a clone of the plot. |
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
PlotState parentState,
PlotRenderingInfo info)
Draws the plot on a Java 2D graphics device (such as the screen or a printer). |
protected void |
drawItem(java.awt.Graphics2D g2,
int section,
java.awt.geom.Rectangle2D dataArea,
PiePlotState state,
int currentPass)
Draws a single data item. |
protected void |
drawLabels(java.awt.Graphics2D g2,
java.util.List keys,
double totalValue,
java.awt.geom.Rectangle2D plotArea,
java.awt.geom.Rectangle2D linkArea,
PiePlotState state)
Draws the labels for the pie sections. |
protected void |
drawLeftLabel(java.awt.Graphics2D g2,
PiePlotState state,
PieLabelRecord record)
Draws a section label on the left side of the pie chart. |
protected void |
drawLeftLabels(KeyedValues leftKeys,
java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
java.awt.geom.Rectangle2D linkArea,
float maxLabelWidth,
PiePlotState state)
Draws the left labels. |
protected void |
drawPie(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
PlotRenderingInfo info)
Draws the pie. |
protected void |
drawRightLabel(java.awt.Graphics2D g2,
PiePlotState state,
PieLabelRecord record)
Draws a section label on the right side of the pie chart. |
protected void |
drawRightLabels(KeyedValues keys,
java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
java.awt.geom.Rectangle2D linkArea,
float maxLabelWidth,
PiePlotState state)
Draws the right labels. |
boolean |
equals(java.lang.Object obj)
Tests this plot for equality with an arbitrary object. |
protected java.awt.geom.Rectangle2D |
getArcBounds(java.awt.geom.Rectangle2D unexploded,
java.awt.geom.Rectangle2D exploded,
double angle,
double extent,
double explodePercent)
Returns a rectangle that can be used to create a pie section (taking into account the amount by which the pie section is 'exploded'). |
java.awt.Paint |
getBaseSectionOutlinePaint()
Returns the base section paint. |
java.awt.Stroke |
getBaseSectionOutlineStroke()
Returns the base section stroke. |
java.awt.Paint |
getBaseSectionPaint()
Returns the base section paint. |
PieDataset |
getDataset()
Returns the dataset. |
Rotation |
getDirection()
Returns the direction in which the pie sections are drawn (clockwise or anti-clockwise). |
double |
getExplodePercent(int section)
Returns the amount that a section should be 'exploded'. |
boolean |
getIgnoreNullValues()
Returns the flag that controls whether null values in the
dataset are ignored. |
double |
getInteriorGap()
Returns the interior gap, measured as a percentage of the available drawing space. |
java.awt.Paint |
getLabelBackgroundPaint()
Returns the section label background paint. |
java.awt.Font |
getLabelFont()
Returns the section label font. |
double |
getLabelGap()
Returns the gap between the edge of the pie and the labels, expressed as a percentage of the plot width. |
PieSectionLabelGenerator |
getLabelGenerator()
Returns the section label generator. |
double |
getLabelLinkMargin()
Returns the margin (expressed as a percentage of the width or height) between the edge of the pie and the link point. |
java.awt.Paint |
getLabelLinkPaint()
Returns the paint used for the lines that connect pie sections to their corresponding labels. |
java.awt.Stroke |
getLabelLinkStroke()
Returns the stroke used for the label linking lines. |
java.awt.Paint |
getLabelOutlinePaint()
Returns the section label outline paint. |
java.awt.Stroke |
getLabelOutlineStroke()
Returns the section label outline stroke. |
java.awt.Paint |
getLabelPaint()
Returns the section label paint. |
java.awt.Paint |
getLabelShadowPaint()
Returns the section label shadow paint. |
LegendItemCollection |
getLegendItems()
Returns a collection of legend items for the pie chart. |
java.awt.Shape |
getLegendItemShape()
Returns the shape used for legend items. |
PieSectionLabelGenerator |
getLegendLabelGenerator()
Returns the legend label generator. |
double |
getMaximumExplodePercent()
Returns the maximum explode percent. |
double |
getMaximumLabelWidth()
Returns the maximum label width as a percentage of the plot width. |
double |
getMinimumArcAngleToDraw()
Returns the minimum arc angle that will be drawn. |
int |
getPieIndex()
Returns the pie index (this is used by the MultiplePiePlot class
to track subplots). |
java.lang.String |
getPlotType()
Returns a short string describing the type of plot. |
java.awt.Paint |
getSectionOutlinePaint()
Returns the outline paint for ALL sections in the plot. |
java.awt.Paint |
getSectionOutlinePaint(int section)
Returns the paint for the specified section. |
java.awt.Stroke |
getSectionOutlineStroke()
Returns the outline stroke for ALL sections in the plot. |
java.awt.Stroke |
getSectionOutlineStroke(int section)
Returns the stroke for the specified section. |
java.awt.Paint |
getSectionPaint()
Returns the paint for ALL sections in the plot. |
java.awt.Paint |
getSectionPaint(int section)
Returns the paint for the specified section. |
java.awt.Paint |
getShadowPaint()
Returns the shadow paint. |
double |
getShadowXOffset()
Returns the x-offset for the shadow effect. |
double |
getShadowYOffset()
Returns the y-offset for the shadow effect. |
double |
getStartAngle()
Returns the start angle for the first pie section. |
PieToolTipGenerator |
getToolTipGenerator()
Returns the tool tip generator, an object that is responsible for generating the text items used for tool tips by the plot. |
PieURLGenerator |
getURLGenerator()
Returns the URL generator. |
PiePlotState |
initialise(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
PiePlot plot,
java.lang.Integer index,
PlotRenderingInfo info)
Initialises the drawing procedure. |
boolean |
isCircular()
Returns a flag indicating whether the pie chart is circular, or stretched into an elliptical shape. |
void |
setBaseSectionOutlinePaint(java.awt.Paint paint)
Sets the base section paint. |
void |
setBaseSectionOutlineStroke(java.awt.Stroke stroke)
Sets the base section stroke. |
void |
setBaseSectionPaint(java.awt.Paint paint)
Sets the base section paint. |
void |
setCircular(boolean flag)
A flag indicating whether the pie chart is circular, or stretched into an elliptical shape. |
void |
setCircular(boolean circular,
boolean notify)
Sets the circular attribute and, if requested, sends a PlotChangeEvent to all registered listeners. |
void |
setDataset(PieDataset dataset)
Sets the dataset and sends a DatasetChangeEvent to 'this'. |
void |
setDirection(Rotation direction)
Sets the direction in which the pie sections are drawn and sends a PlotChangeEvent to all registered listeners. |
void |
setExplodePercent(int section,
double percent)
Sets the amount that a pie section should be exploded and sends a PlotChangeEvent to all registered listeners. |
void |
setIgnoreNullValues(boolean flag)
Sets a flag that controls whether null values are ignored,
and sends a PlotChangeEvent to all registered listeners. |
void |
setInteriorGap(double percent)
Sets the interior gap and sends a PlotChangeEvent to all
registered listeners. |
void |
setLabelBackgroundPaint(java.awt.Paint paint)
Sets the section label background paint and sends a PlotChangeEvent to all registered listeners. |
void |
setLabelFont(java.awt.Font font)
Sets the section label font and sends a PlotChangeEvent to all
registered listeners. |
void |
setLabelGap(double gap)
Sets the gap between the edge of the pie and the labels (expressed as a percentage of the plot width) and sends a PlotChangeEvent to all
registered listeners. |
void |
setLabelGenerator(PieSectionLabelGenerator generator)
Sets the section label generator and sends a PlotChangeEvent to
all registered listeners. |
void |
setLabelLinkMargin(double margin)
Sets the link margin and sends a PlotChangeEvent to all
registered listeners. |
void |
setLabelLinkPaint(java.awt.Paint paint)
Sets the paint used for the lines that connect pie sections to their corresponding labels, and sends a PlotChangeEvent to all
registered listeners. |
void |
setLabelLinkStroke(java.awt.Stroke stroke)
Sets the link stroke and sends a PlotChangeEvent to all
registered listeners. |
void |
setLabelOutlinePaint(java.awt.Paint paint)
Sets the section label outline paint and sends a PlotChangeEvent to all registered listeners. |
void |
setLabelOutlineStroke(java.awt.Stroke stroke)
Sets the section label outline stroke and sends a PlotChangeEvent to all registered listeners. |
void |
setLabelPaint(java.awt.Paint paint)
Sets the section label paint and sends a PlotChangeEvent to all
registered listeners. |
void |
setLabelShadowPaint(java.awt.Paint paint)
Sets the section label shadow paint and sends a PlotChangeEvent
to all registered listeners. |
void |
setLegendItemShape(java.awt.Shape shape)
Sets the shape used for legend items. |
void |
setLegendLabelGenerator(PieSectionLabelGenerator generator)
Sets the legend label generator and sends a PlotChangeEvent to
all registered listeners. |
void |
setMaximumLabelWidth(double width)
Sets the maximum label width as a percentage of the plot width and sends a PlotChangeEvent to all registered listeners. |
void |
setMinimumArcAngleToDraw(double angle)
Sets the minimum arc angle that will be drawn. |
void |
setPieIndex(int index)
Sets the pie index (this is used by the MultiplePiePlot class to
track subplots). |
void |
setSectionOutlinePaint(int section,
java.awt.Paint paint)
Sets the paint used to fill a section of the pie and sends a PlotChangeEvent to all registered listeners. |
void |
setSectionOutlinePaint(java.awt.Paint paint)
Sets the outline paint for ALL sections in the plot. |
void |
setSectionOutlineStroke(int section,
java.awt.Stroke stroke)
Sets the stroke used to fill a section of the pie and sends a PlotChangeEvent to all registered listeners. |
void |
setSectionOutlineStroke(java.awt.Stroke stroke)
Sets the outline stroke for ALL sections in the plot. |
void |
setSectionPaint(int section,
java.awt.Paint paint)
Sets the paint used to fill a section of the pie and sends a PlotChangeEvent to all registered listeners. |
void |
setSectionPaint(java.awt.Paint paint)
Sets the paint for ALL sections in the plot. |
void |
setShadowPaint(java.awt.Paint paint)
Sets the shadow paint and sends a PlotChangeEvent to all
registered listeners. |
void |
setShadowXOffset(double offset)
Sets the x-offset for the shadow effect and sends a PlotChangeEvent to all registered listeners. |
void |
setShadowYOffset(double offset)
Sets the y-offset for the shadow effect and sends a PlotChangeEvent to all registered listeners. |
void |
setStartAngle(double angle)
Sets the starting angle and sends a PlotChangeEvent to all
registered listeners. |
void |
setToolTipGenerator(PieToolTipGenerator generator)
Sets the tool tip generator and sends a PlotChangeEvent to all
registered listeners. |
void |
setURLGenerator(PieURLGenerator generator)
Sets the URL generator and sends a PlotChangeEvent to all
registered listeners. |
void |
zoom(double percent)
A zoom method that does nothing. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final double DEFAULT_INTERIOR_GAP
public static final double MAX_INTERIOR_GAP
public static final double DEFAULT_START_ANGLE
public static final java.awt.Font DEFAULT_LABEL_FONT
public static final java.awt.Paint DEFAULT_LABEL_PAINT
public static final java.awt.Paint DEFAULT_LABEL_BACKGROUND_PAINT
public static final java.awt.Paint DEFAULT_LABEL_OUTLINE_PAINT
public static final java.awt.Stroke DEFAULT_LABEL_OUTLINE_STROKE
public static final java.awt.Paint DEFAULT_LABEL_SHADOW_PAINT
public static final double DEFAULT_MINIMUM_ARC_ANGLE_TO_DRAW
protected static java.util.ResourceBundle localizationResources
Constructor Detail |
public PiePlot()
null
.
public PiePlot(PieDataset dataset)
dataset
- the dataset (null
permitted).Method Detail |
public PieDataset getDataset()
null
).public void setDataset(PieDataset dataset)
DatasetChangeEvent
to 'this'.
dataset
- the dataset (null
permitted).public int getPieIndex()
MultiplePiePlot
class
to track subplots).
public void setPieIndex(int index)
MultiplePiePlot
class to
track subplots).
index
- the index.public double getStartAngle()
public void setStartAngle(double angle)
PlotChangeEvent
to all
registered listeners. The initial default value is 90 degrees, which
corresponds to 12 o'clock. A value of zero corresponds to 3 o'clock...
this is the encoding used by Java's Arc2D class.
angle
- the angle (in degrees).public Rotation getDirection()
null
).public void setDirection(Rotation direction)
PlotChangeEvent
to all registered listeners.
direction
- the direction (null
not permitted).public double getInteriorGap()
public void setInteriorGap(double percent)
PlotChangeEvent
to all
registered listeners. This controls the space between the edges of the
pie plot and the plot area itself (the region where the section labels
appear).
percent
- the gap (as a percentage of the available drawing space).public boolean isCircular()
public void setCircular(boolean flag)
flag
- the new value.public void setCircular(boolean circular, boolean notify)
PlotChangeEvent
to all registered listeners.
circular
- the new value of the flag.notify
- notify listeners?public java.awt.Paint getSectionPaint()
null
).public void setSectionPaint(java.awt.Paint paint)
paint
- the paint (null
permitted).public java.awt.Paint getSectionPaint(int section)
section
- the section index (zero-based).
null
).public void setSectionPaint(int section, java.awt.Paint paint)
PlotChangeEvent
to all registered listeners.
section
- the section index (zero-based).paint
- the paint (null
permitted).public java.awt.Paint getBaseSectionPaint()
null
).public void setBaseSectionPaint(java.awt.Paint paint)
paint
- the paint (null
not permitted).public java.awt.Paint getSectionOutlinePaint()
null
).public void setSectionOutlinePaint(java.awt.Paint paint)
paint
- the paint (null
permitted).public java.awt.Paint getSectionOutlinePaint(int section)
section
- the section index (zero-based).
null
).public void setSectionOutlinePaint(int section, java.awt.Paint paint)
PlotChangeEvent
to all registered listeners.
section
- the section index (zero-based).paint
- the paint (null
permitted).public java.awt.Paint getBaseSectionOutlinePaint()
null
).public void setBaseSectionOutlinePaint(java.awt.Paint paint)
paint
- the paint (null
not permitted).public java.awt.Stroke getSectionOutlineStroke()
null
).public void setSectionOutlineStroke(java.awt.Stroke stroke)
stroke
- the stroke (null
permitted).public java.awt.Stroke getSectionOutlineStroke(int section)
section
- the section index (zero-based).
null
).public void setSectionOutlineStroke(int section, java.awt.Stroke stroke)
PlotChangeEvent
to all registered listeners.
section
- the section index (zero-based).stroke
- the stroke (null
permitted).public java.awt.Stroke getBaseSectionOutlineStroke()
null
).public void setBaseSectionOutlineStroke(java.awt.Stroke stroke)
stroke
- the stroke (null
not permitted).public java.awt.Paint getShadowPaint()
null
).public void setShadowPaint(java.awt.Paint paint)
PlotChangeEvent
to all
registered listeners.
paint
- the paint (null
permitted).public double getShadowXOffset()
public void setShadowXOffset(double offset)
PlotChangeEvent
to all registered listeners.
offset
- the offset (in Java2D units).public double getShadowYOffset()
public void setShadowYOffset(double offset)
PlotChangeEvent
to all registered listeners.
offset
- the offset (in Java2D units).public double getExplodePercent(int section)
section
- the section number.
public void setExplodePercent(int section, double percent)
PlotChangeEvent
to all registered listeners.
section
- the section index.percent
- the explode percentage (0.30 = 30 percent).public double getMaximumExplodePercent()
public PieSectionLabelGenerator getLabelGenerator()
null
).public void setLabelGenerator(PieSectionLabelGenerator generator)
PlotChangeEvent
to
all registered listeners.
generator
- the generator (null
permitted).public double getLabelGap()
public void setLabelGap(double gap)
PlotChangeEvent
to all
registered listeners.
gap
- the gap (a percentage, where 0.05 = five percent).public double getMaximumLabelWidth()
public void setMaximumLabelWidth(double width)
PlotChangeEvent
to all registered listeners.
width
- the width (a percentage, where 0.20 = 20 percent).public double getLabelLinkMargin()
public void setLabelLinkMargin(double margin)
PlotChangeEvent
to all
registered listeners.
margin
- the margin.public java.awt.Paint getLabelLinkPaint()
null
).public void setLabelLinkPaint(java.awt.Paint paint)
PlotChangeEvent
to all
registered listeners.
paint
- the paint (null
not permitted).public java.awt.Stroke getLabelLinkStroke()
public void setLabelLinkStroke(java.awt.Stroke stroke)
PlotChangeEvent
to all
registered listeners.
stroke
- the stroke.public java.awt.Font getLabelFont()
null
).public void setLabelFont(java.awt.Font font)
PlotChangeEvent
to all
registered listeners.
font
- the font (null
not permitted).public java.awt.Paint getLabelPaint()
null
).public void setLabelPaint(java.awt.Paint paint)
PlotChangeEvent
to all
registered listeners.
paint
- the paint (null
not permitted).public java.awt.Paint getLabelBackgroundPaint()
null
).public void setLabelBackgroundPaint(java.awt.Paint paint)
PlotChangeEvent
to all registered listeners.
paint
- the paint (null
permitted).public java.awt.Paint getLabelOutlinePaint()
null
).public void setLabelOutlinePaint(java.awt.Paint paint)
PlotChangeEvent
to all registered listeners.
paint
- the paint (null
permitted).public java.awt.Stroke getLabelOutlineStroke()
null
).public void setLabelOutlineStroke(java.awt.Stroke stroke)
PlotChangeEvent
to all registered listeners.
stroke
- the stroke (null
permitted).public java.awt.Paint getLabelShadowPaint()
null
).public void setLabelShadowPaint(java.awt.Paint paint)
PlotChangeEvent
to all registered listeners.
paint
- the paint (null
permitted).public PieToolTipGenerator getToolTipGenerator()
null
, no tool tips will be created.
null
).public void setToolTipGenerator(PieToolTipGenerator generator)
PlotChangeEvent
to all
registered listeners. Set the generator to null
if you
don't want any tool tips.
generator
- the generator (null
permitted).public PieURLGenerator getURLGenerator()
null
).public void setURLGenerator(PieURLGenerator generator)
PlotChangeEvent
to all
registered listeners.
generator
- the generator (null
permitted).public double getMinimumArcAngleToDraw()
public void setMinimumArcAngleToDraw(double angle)
angle
- the minimum angle.public boolean getIgnoreNullValues()
null
values in the
dataset are ignored.
public void setIgnoreNullValues(boolean flag)
null
values are ignored,
and sends a PlotChangeEvent
to all registered listeners. At
present, this only affects whether or not the key is presented in the
legend.
flag
- the flag.public java.awt.Shape getLegendItemShape()
public void setLegendItemShape(java.awt.Shape shape)
shape
- the shape (null
not permitted).public PieSectionLabelGenerator getLegendLabelGenerator()
null
).public void setLegendLabelGenerator(PieSectionLabelGenerator generator)
PlotChangeEvent
to
all registered listeners.
generator
- the generator (null
not permitted).public PiePlotState initialise(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, PiePlot plot, java.lang.Integer index, PlotRenderingInfo info)
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.
public void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, PlotState parentState, PlotRenderingInfo info)
draw
in class Plot
g2
- the graphics device.plotArea
- the area within which the plot should be drawn.parentState
- the state from the parent plot, if there is one.info
- collects info about the drawing
(null
permitted).protected void drawPie(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, PlotRenderingInfo info)
g2
- the graphics device.plotArea
- the plot area.info
- chart rendering info.protected void drawItem(java.awt.Graphics2D g2, int section, java.awt.geom.Rectangle2D dataArea, PiePlotState state, int currentPass)
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 void drawLabels(java.awt.Graphics2D g2, java.util.List keys, double totalValue, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D linkArea, PiePlotState state)
g2
- the graphics device.keys
- the keys.totalValue
- the total value.plotArea
- the plot area.linkArea
- the link area.state
- the state.protected void drawLeftLabels(KeyedValues leftKeys, java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D linkArea, float maxLabelWidth, PiePlotState state)
leftKeys
- the keys.g2
- the graphics device.plotArea
- the plot area.linkArea
- the link area.maxLabelWidth
- the maximum label width.state
- the state.protected void drawRightLabels(KeyedValues keys, java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D linkArea, float maxLabelWidth, PiePlotState state)
keys
- the keys.g2
- the graphics device.plotArea
- the plot area.linkArea
- the link area.maxLabelWidth
- the maximum label width.state
- the state.public LegendItemCollection getLegendItems()
getLegendItems
in interface LegendItemSource
getLegendItems
in class Plot
null
).public java.lang.String getPlotType()
getPlotType
in class Plot
public void zoom(double percent)
Plots are required to support the zoom operation. In the case of a pie chart, it doesn't make sense to zoom in or out, so the method is empty.
zoom
in class Plot
percent
- the zoom percentage.protected java.awt.geom.Rectangle2D getArcBounds(java.awt.geom.Rectangle2D unexploded, java.awt.geom.Rectangle2D exploded, double angle, double extent, double explodePercent)
unexploded
- the area inside which the unexploded pie sections are
drawn.exploded
- the area inside which the exploded pie sections are
drawn.angle
- the start angle.extent
- the extent of the arc.explodePercent
- the amount by which the pie section is exploded.
protected void drawLeftLabel(java.awt.Graphics2D g2, PiePlotState state, PieLabelRecord record)
g2
- the graphics device.state
- the state.record
- the label record.protected void drawRightLabel(java.awt.Graphics2D g2, PiePlotState state, PieLabelRecord record)
g2
- the graphics device.state
- the state.record
- the label record.public boolean equals(java.lang.Object obj)
equals
in class Plot
obj
- the object to test against (null
permitted).
true
or false
.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class Plot
java.lang.CloneNotSupportedException
- if some component of the plot does
not support cloning.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |