org.jfree.chart.plot
public class PiePlot extends Plot implements Cloneable, Serializable
Special notes:
See Also: Plot PieDataset
Field Summary | |
---|---|
static double | DEFAULT_INTERIOR_GAP The default interior gap. |
static Paint | DEFAULT_LABEL_BACKGROUND_PAINT The default section label background paint. |
static Font | DEFAULT_LABEL_FONT The default section label font. |
static Paint | DEFAULT_LABEL_OUTLINE_PAINT The default section label outline paint. |
static Stroke | DEFAULT_LABEL_OUTLINE_STROKE The default section label outline stroke. |
static Paint | DEFAULT_LABEL_PAINT The default section label paint. |
static 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 ResourceBundle | localizationResources The resourceBundle for the localization. |
static double | MAX_INTERIOR_GAP The maximum interior gap (currently 40%). |
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 | |
---|---|
Object | clone()
Returns a clone of the plot.
|
void | draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)
Draws the plot on a Java 2D graphics device (such as the screen or a
printer).
|
protected void | drawItem(Graphics2D g2, int section, Rectangle2D dataArea, PiePlotState state, int currentPass)
Draws a single data item.
|
protected void | drawLabels(Graphics2D g2, List keys, double totalValue, Rectangle2D plotArea, Rectangle2D linkArea, PiePlotState state)
Draws the labels for the pie sections.
|
protected void | drawLeftLabel(Graphics2D g2, PiePlotState state, PieLabelRecord record)
Draws a section label on the left side of the pie chart.
|
protected void | drawLeftLabels(KeyedValues leftKeys, Graphics2D g2, Rectangle2D plotArea, Rectangle2D linkArea, float maxLabelWidth, PiePlotState state)
Draws the left labels.
|
protected void | drawPie(Graphics2D g2, Rectangle2D plotArea, PlotRenderingInfo info)
Draws the pie.
|
protected void | drawRightLabel(Graphics2D g2, PiePlotState state, PieLabelRecord record)
Draws a section label on the right side of the pie chart.
|
protected void | drawRightLabels(KeyedValues keys, Graphics2D g2, Rectangle2D plotArea, Rectangle2D linkArea, float maxLabelWidth, PiePlotState state)
Draws the right labels.
|
boolean | equals(Object obj)
Tests this plot for equality with an arbitrary object. |
protected Rectangle2D | getArcBounds(Rectangle2D unexploded, 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').
|
Paint | getBaseSectionOutlinePaint()
Returns the base section paint. |
Stroke | getBaseSectionOutlineStroke()
Returns the base section stroke. |
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(Comparable key)
Returns the amount that the section with the specified key should be
exploded.
|
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.
|
boolean | getIgnoreZeroValues()
Returns the flag that controls whether zero values in the
dataset are ignored.
|
double | getInteriorGap()
Returns the interior gap, measured as a percentage of the available
drawing space.
|
Paint | getLabelBackgroundPaint()
Returns the section label background paint.
|
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.
|
Paint | getLabelLinkPaint()
Returns the paint used for the lines that connect pie sections to their
corresponding labels.
|
boolean | getLabelLinksVisible()
Returns the flag that controls whether or not label linking lines are
visible.
|
Stroke | getLabelLinkStroke()
Returns the stroke used for the label linking lines.
|
Paint | getLabelOutlinePaint()
Returns the section label outline paint.
|
Stroke | getLabelOutlineStroke()
Returns the section label outline stroke.
|
Paint | getLabelPaint()
Returns the section label paint.
|
Paint | getLabelShadowPaint()
Returns the section label shadow paint.
|
LegendItemCollection | getLegendItems()
Returns a collection of legend items for the pie chart.
|
Shape | getLegendItemShape()
Returns the shape used for legend items.
|
PieSectionLabelGenerator | getLegendLabelGenerator()
Returns the legend label generator.
|
PieSectionLabelGenerator | getLegendLabelToolTipGenerator()
Returns the legend label tool tip generator.
|
PieURLGenerator | getLegendLabelURLGenerator()
Returns the legend label URL 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).
|
String | getPlotType()
Returns a short string describing the type of plot.
|
protected Comparable | getSectionKey(int section)
Returns a key for the specified section. |
Paint | getSectionOutlinePaint()
Returns the outline paint for ALL sections in the plot.
|
Paint | getSectionOutlinePaint(Comparable key)
Returns the outline paint associated with the specified key, or
null if there is no paint associated with the key.
|
Paint | getSectionOutlinePaint(int section)
Returns the paint for the specified section.
|
boolean | getSectionOutlinesVisible()
Returns the flag that controls whether or not the outline is drawn for
each pie section.
|
Stroke | getSectionOutlineStroke()
Returns the outline stroke for ALL sections in the plot.
|
Stroke | getSectionOutlineStroke(Comparable key)
Returns the outline stroke associated with the specified key, or
null if there is no stroke associated with the key.
|
Stroke | getSectionOutlineStroke(int section)
Returns the stroke for the specified section.
|
Paint | getSectionPaint()
Returns the paint for ALL sections in the plot.
|
Paint | getSectionPaint(Comparable key)
Returns the paint associated with the specified key, or
null if there is no paint associated with the key.
|
Paint | getSectionPaint(int section)
Returns the paint for the specified section.
|
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(Graphics2D g2, Rectangle2D plotArea, PiePlot plot, 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.
|
protected Paint | lookupSectionOutlinePaint(Comparable key)
Returns the outline paint for the specified section. |
protected Paint | lookupSectionOutlinePaint(Comparable key, boolean autoPopulate)
Returns the outline paint for the specified section. |
protected Stroke | lookupSectionOutlineStroke(Comparable key)
Returns the outline stroke for the specified section. |
protected Stroke | lookupSectionOutlineStroke(Comparable key, boolean autoPopulate)
Returns the outline stroke for the specified section. |
protected Paint | lookupSectionPaint(Comparable key)
Returns the paint for the specified section. |
protected Paint | lookupSectionPaint(Comparable key, boolean autoPopulate)
Returns the paint for the specified section. |
void | setBaseSectionOutlinePaint(Paint paint)
Sets the base section paint.
|
void | setBaseSectionOutlineStroke(Stroke stroke)
Sets the base section stroke.
|
void | setBaseSectionPaint(Paint paint)
Sets the base section paint and sends a PlotChangeEvent to all
registered listeners.
|
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(Comparable key, double percent)
Sets the amount that a pie section should be exploded 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 | setIgnoreZeroValues(boolean flag)
Sets a flag that controls whether zero 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(Paint paint)
Sets the section label background paint and sends a
PlotChangeEvent to all registered listeners.
|
void | setLabelFont(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(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 | setLabelLinksVisible(boolean visible)
Sets the flag that controls whether or not label linking lines are
visible and sends a PlotChangeEvent to all registered listeners.
|
void | setLabelLinkStroke(Stroke stroke)
Sets the link stroke and sends a PlotChangeEvent to all
registered listeners.
|
void | setLabelOutlinePaint(Paint paint)
Sets the section label outline paint and sends a
PlotChangeEvent to all registered listeners.
|
void | setLabelOutlineStroke(Stroke stroke)
Sets the section label outline stroke and sends a
PlotChangeEvent to all registered listeners.
|
void | setLabelPaint(Paint paint)
Sets the section label paint and sends a PlotChangeEvent to all
registered listeners.
|
void | setLabelShadowPaint(Paint paint)
Sets the section label shadow paint and sends a PlotChangeEvent
to all registered listeners.
|
void | setLegendItemShape(Shape shape)
Sets the shape used for legend items and sends a PlotChangeEvent
to all registered listeners.
|
void | setLegendLabelGenerator(PieSectionLabelGenerator generator)
Sets the legend label generator and sends a PlotChangeEvent to
all registered listeners.
|
void | setLegendLabelToolTipGenerator(PieSectionLabelGenerator generator)
Sets the legend label tool tip generator and sends a
PlotChangeEvent to all registered listeners.
|
void | setLegendLabelURLGenerator(PieURLGenerator generator)
Sets the legend label URL 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(Paint paint)
Sets the outline paint for ALL sections in the plot. |
void | setSectionOutlinePaint(Comparable key, Paint paint)
Sets the outline paint associated with the specified key, and sends a
PlotChangeEvent to all registered listeners.
|
void | setSectionOutlinePaint(int section, Paint paint)
Sets the paint used to fill a section of the pie and sends a
PlotChangeEvent to all registered listeners.
|
void | setSectionOutlinesVisible(boolean visible)
Sets the flag that controls whether or not the outline is drawn for
each pie section, and sends a PlotChangeEvent to all registered
listeners.
|
void | setSectionOutlineStroke(Stroke stroke)
Sets the outline stroke for ALL sections in the plot. |
void | setSectionOutlineStroke(Comparable key, Stroke stroke)
Sets the outline stroke associated with the specified key, and sends a
PlotChangeEvent to all registered listeners.
|
void | setSectionOutlineStroke(int section, Stroke stroke)
Sets the stroke used to fill a section of the pie and sends a
PlotChangeEvent to all registered listeners.
|
void | setSectionPaint(Paint paint)
Sets the paint for ALL sections in the plot. |
void | setSectionPaint(Comparable key, Paint paint)
Sets the paint associated with the specified key, and sends a
PlotChangeEvent to all registered listeners.
|
void | setSectionPaint(int section, Paint paint)
Sets the paint used to fill a section of the pie and sends a
PlotChangeEvent to all registered listeners.
|
void | setShadowPaint(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.
|
null
.Parameters: dataset the dataset (null
permitted).
Returns: A clone.
Throws: CloneNotSupportedException if some component of the plot does not support cloning.
Parameters: g2 the graphics device. area the area within which the plot should be drawn. anchor the anchor point (null
permitted). parentState the state from the parent plot, if there is one. info collects info about the drawing
(null
permitted).
Parameters: 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.
Parameters: g2 the graphics device. keys the keys. totalValue the total value. plotArea the plot area. linkArea the link area. state the state.
Parameters: g2 the graphics device. state the state. record the label record.
Parameters: leftKeys the keys. g2 the graphics device. plotArea the plot area. linkArea the link area. maxLabelWidth the maximum label width. state the state.
Parameters: g2 the graphics device. plotArea the plot area. info chart rendering info.
Parameters: g2 the graphics device. state the state. record the label record.
Parameters: keys the keys. g2 the graphics device. plotArea the plot area. linkArea the link area. maxLabelWidth the maximum label width. state the state.
Parameters: obj the object to test against (null
permitted).
Returns: true
or false
.
Parameters: 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.
Returns: A rectangle that can be used to create a pie section.
Returns: The paint (never null
).
See Also: setBaseSectionOutlinePaint
Returns: The stroke (never null
).
See Also: setBaseSectionOutlineStroke
Color.gray
.
Returns: The paint (never null
).
See Also: setBaseSectionPaint
Returns: The dataset (possibly null
).
See Also: setDataset
Returns: The direction (never null
).
See Also: setDirection
Parameters: key the key (null
not permitted).
Returns: The amount that the section with the specified key should be exploded.
Throws: IllegalArgumentException if key
is
null
.
Since: 1.0.3
See Also: PiePlot
Deprecated: Use getExplodePercent instead.
Returns the amount that a section should be 'exploded'.Parameters: section the section number.
Returns: The amount that a section should be 'exploded'.
null
values in the
dataset are ignored.
Returns: A boolean.
See Also: PiePlot
Returns: A boolean.
See Also: PiePlot
Returns: The gap (as a percentage of the available drawing space).
See Also: PiePlot
Returns: The paint (possibly null
).
See Also: setLabelBackgroundPaint
Returns: The font (never null
).
See Also: setLabelFont
Returns: The gap (a percentage, where 0.05 = five percent).
See Also: PiePlot
Returns: The generator (possibly null
).
See Also: setLabelGenerator
Returns: The link margin (as a percentage, where 0.05 is five percent).
See Also: PiePlot
Returns: The paint (never null
).
See Also: setLabelLinkPaint
Returns: A boolean.
See Also: PiePlot
Returns: The stroke.
See Also: setLabelLinkStroke
Returns: The paint (possibly null
).
See Also: setLabelOutlinePaint
Returns: The stroke (possibly null
).
See Also: setLabelOutlineStroke
Returns: The paint (never null
).
See Also: setLabelPaint
Returns: The paint (possibly null
).
See Also: setLabelShadowPaint
Returns: The legend items (never null
).
Returns: The shape (never null
).
See Also: setLegendItemShape
Returns: The legend label generator (never null
).
See Also: setLegendLabelGenerator
Returns: The legend label tool tip generator (possibly null
).
See Also: setLegendLabelToolTipGenerator
Returns: The legend label URL generator (possibly null
).
Since: 1.0.4
Returns: The percent.
Returns: The width (a percentage, where 0.20 = 20 percent).
See Also: PiePlot
Returns: The minimum angle.
See Also: PiePlot
Returns: The pie index.
See Also: PiePlot
Returns: The plot type.
Parameters: section the section index.
Returns: The key.
Since: 1.0.3
Returns: The paint (possibly null
).
See Also: setSectionOutlinePaint
null
if there is no paint associated with the key.
Parameters: key the key (null
not permitted).
Returns: The paint associated with the specified key, or
null
.
Throws: IllegalArgumentException if key
is
null
.
Since: 1.0.3
Deprecated: Use getSectionOutlinePaint instead.
Returns the paint for the specified section.Parameters: section the section index (zero-based).
Returns: The paint (possibly null
).
Returns: The flag that controls whether or not the outline is drawn for each pie section.
See Also: PiePlot
Returns: The stroke (possibly null
).
See Also: setSectionOutlineStroke
null
if there is no stroke associated with the key.
Parameters: key the key (null
not permitted).
Returns: The stroke associated with the specified key, or
null
.
Throws: IllegalArgumentException if key
is
null
.
Since: 1.0.3
Deprecated: Use getSectionOutlineStroke instead.
Returns the stroke for the specified section.Parameters: section the section index (zero-based).
Returns: The stroke (possibly null
).
Returns: The paint (possibly null
).
See Also: setSectionPaint
null
if there is no paint associated with the key.
Parameters: key the key (null
not permitted).
Returns: The paint associated with the specified key, or
null
.
Throws: IllegalArgumentException if key
is
null
.
Since: 1.0.3
Deprecated: Use getSectionPaint instead.
Returns the paint for the specified section.Parameters: section the section index (zero-based).
Returns: The paint (never null
).
Returns: The paint (possibly null
).
See Also: setShadowPaint
Returns: The offset (in Java2D units).
See Also: PiePlot
Returns: The offset (in Java2D units).
See Also: PiePlot
Returns: The start angle.
See Also: PiePlot
null
, no tool tips will be created.
Returns: The generator (possibly null
).
See Also: setToolTipGenerator
Returns: The generator (possibly null
).
See Also: setURLGenerator
Parameters: 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.
Returns: A state object (maintains state information relevant to one chart drawing).
Returns: A flag indicating whether the pie chart is circular.
See Also: PiePlot
lookupSectionPaint(section, false)
.
Parameters: key the section key.
Returns: The paint for the specified section.
Since: 1.0.3
See Also: PiePlot
null
,
return it;null
return it;null
but
autoPopulate
is true
, attempt to fetch
a new outline paint from the drawing supplier
(PiePlot);
Parameters: key the section key. autoPopulate a flag that controls whether the drawing supplier is used to auto-populate the section outline paint settings.
Returns: The paint.
Since: 1.0.3
lookupSectionOutlineStroke(section, false)
.
Parameters: key the section key.
Returns: The stroke for the specified section.
Since: 1.0.3
See Also: PiePlot
null
,
return it;null
return it;null
but
autoPopulate
is true
, attempt to fetch
a new outline stroke from the drawing supplier
(PiePlot);
Parameters: key the section key. autoPopulate a flag that controls whether the drawing supplier is used to auto-populate the section outline stroke settings.
Returns: The stroke.
Since: 1.0.3
lookupSectionPaint(section, false)
.
Parameters: key the section key.
Returns: The paint for the specified section.
Since: 1.0.3
See Also: PiePlot
null
, return
it;null
return
it;null
but
autoPopulate
is true
, attempt to fetch
a new paint from the drawing supplier
(PiePlot);
Parameters: key the section key. autoPopulate a flag that controls whether the drawing supplier is used to auto-populate the section paint settings.
Returns: The paint.
Since: 1.0.3
Parameters: paint the paint (null
not permitted).
See Also: getBaseSectionOutlinePaint
Parameters: stroke the stroke (null
not permitted).
See Also: getBaseSectionOutlineStroke
Parameters: paint the paint (null
not permitted).
See Also: getBaseSectionPaint
Parameters: flag the new value.
See Also: isCircular
Parameters: circular the new value of the flag. notify notify listeners?
See Also: isCircular
Parameters: dataset the dataset (null
permitted).
See Also: getDataset
Parameters: direction the direction (null
not permitted).
See Also: getDirection
Parameters: key the section key (null
not permitted). percent the explode percentage (0.30 = 30 percent).
Since: 1.0.3
See Also: getExplodePercent
Deprecated: Use PiePlot instead.
Sets the amount that a pie section should be exploded and sends a PlotChangeEvent to all registered listeners.Parameters: section the section index. percent the explode percentage (0.30 = 30 percent).
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.
Parameters: flag the flag.
See Also: getIgnoreNullValues PiePlot
Parameters: flag the flag.
See Also: getIgnoreZeroValues PiePlot
Parameters: percent the gap (as a percentage of the available drawing space).
See Also: getInteriorGap
Parameters: paint the paint (null
permitted).
See Also: getLabelBackgroundPaint
Parameters: font the font (null
not permitted).
See Also: getLabelFont
Parameters: gap the gap (a percentage, where 0.05 = five percent).
See Also: getLabelGap
Parameters: generator the generator (null
permitted).
See Also: getLabelGenerator
Parameters: margin the margin.
See Also: getLabelLinkMargin
Parameters: paint the paint (null
not permitted).
See Also: getLabelLinkPaint
Parameters: visible the flag.
See Also: getLabelLinksVisible
Parameters: stroke the stroke.
See Also: getLabelLinkStroke
Parameters: paint the paint (null
permitted).
See Also: getLabelOutlinePaint
Parameters: stroke the stroke (null
permitted).
See Also: getLabelOutlineStroke
Parameters: paint the paint (null
not permitted).
See Also: getLabelPaint
Parameters: paint the paint (null
permitted).
See Also: getLabelShadowPaint
Parameters: shape the shape (null
not permitted).
See Also: getLegendItemShape
Parameters: generator the generator (null
not permitted).
See Also: getLegendLabelGenerator
Parameters: generator the generator (null
permitted).
See Also: getLegendLabelToolTipGenerator
Parameters: generator the generator (null
permitted).
Since: 1.0.4
Parameters: width the width (a percentage, where 0.20 = 20 percent).
See Also: getMaximumLabelWidth
Parameters: angle the minimum angle.
See Also: getMinimumArcAngleToDraw
Parameters: index the index.
See Also: getPieIndex
Parameters: paint the paint (null
permitted).
See Also: getSectionOutlinePaint
Parameters: key the key (null
not permitted). paint the paint.
Throws: IllegalArgumentException if key
is
null
.
Since: 1.0.3
Deprecated: Use PiePlot instead.
Sets the paint used to fill a section of the pie and sends a PlotChangeEvent to all registered listeners.Parameters: section the section index (zero-based). paint the paint (null
permitted).
Parameters: visible the flag.
See Also: getSectionOutlinesVisible
Parameters: stroke the stroke (null
permitted).
See Also: getSectionOutlineStroke
Parameters: key the key (null
not permitted). stroke the stroke.
Throws: IllegalArgumentException if key
is
null
.
Since: 1.0.3
Deprecated: Use PiePlot instead.
Sets the stroke used to fill a section of the pie and sends a PlotChangeEvent to all registered listeners.Parameters: section the section index (zero-based). stroke the stroke (null
permitted).
Parameters: paint the paint (null
permitted).
See Also: getSectionPaint
Parameters: key the key (null
not permitted). paint the paint.
Throws: IllegalArgumentException if key
is
null
.
Since: 1.0.3
Deprecated: Use PiePlot instead.
Sets the paint used to fill a section of the pie and sends a PlotChangeEvent to all registered listeners.Parameters: section the section index (zero-based). paint the paint (null
permitted).
Parameters: paint the paint (null
permitted).
See Also: getShadowPaint
Parameters: offset the offset (in Java2D units).
See Also: getShadowXOffset
Parameters: offset the offset (in Java2D units).
See Also: getShadowYOffset
Parameters: angle the angle (in degrees).
See Also: getStartAngle
null
if you
don't want any tool tips.
Parameters: generator the generator (null
permitted).
See Also: getToolTipGenerator
Parameters: generator the generator (null
permitted).
See Also: getURLGenerator
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.
Parameters: percent the zoom percentage.