void
|
clearSectionOutlinePaints(boolean notify)
Clears the section outline paint settings for this plot and, if
requested, sends a PlotChangeEvent to all registered listeners.
|
void
|
clearSectionOutlineStrokes(boolean notify)
Clears the section outline stroke settings for this plot and, if
requested, sends a PlotChangeEvent to all registered listeners.
|
void
|
clearSectionPaints(boolean notify)
Clears the section paint settings for this plot and, if requested, sends
a PlotChangeEvent to all registered listeners.
|
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).
|
void
|
drawItem(Graphics2D g2, int section, Rectangle2D dataArea, PiePlotState state, int currentPass)
Draws a single data item.
|
void
|
drawLabels(Graphics2D g2, List keys, double totalValue, Rectangle2D plotArea, Rectangle2D linkArea, PiePlotState state)
Draws the labels for the pie sections.
|
void
|
drawLeftLabel(Graphics2D g2, PiePlotState state, PieLabelRecord record)
Draws a section label on the left side of the pie chart.
|
void
|
drawLeftLabels(KeyedValues leftKeys, Graphics2D g2, Rectangle2D plotArea, Rectangle2D linkArea, float maxLabelWidth, PiePlotState state)
Draws the left labels.
|
void
|
drawPie(Graphics2D g2, Rectangle2D plotArea, PlotRenderingInfo info)
Draws the pie.
|
void
|
drawRightLabel(Graphics2D g2, PiePlotState state, PieLabelRecord record)
Draws a section label on the right side of the pie chart.
|
void
|
drawRightLabels(KeyedValues keys, Graphics2D g2, Rectangle2D plotArea, Rectangle2D linkArea, float maxLabelWidth, PiePlotState state)
Draws the right labels.
|
void
|
drawSimpleLabels(Graphics2D g2, List keys, double totalValue, Rectangle2D plotArea, Rectangle2D pieArea, PiePlotState state)
Draws the pie section labels in the simple form.
|
boolean
|
equals(Object obj)
Tests this plot for equality with an arbitrary object.
|
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').
|
boolean
|
getAutoPopulateSectionOutlinePaint()
|
boolean
|
getAutoPopulateSectionOutlineStroke()
|
boolean
|
getAutoPopulateSectionPaint()
|
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)
|
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.
|
AbstractPieLabelDistributor
|
getLabelDistributor()
Returns the object responsible for the vertical layout of the pie
section labels.
|
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
|
getLabelLinkDepth()
Returns the distance that the end of the label link is embedded into
the plot, expressed as a percentage of the plot's radius.
|
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.
|
Stroke
|
getLabelLinkStroke()
Returns the stroke used for the label linking lines.
|
PieLabelLinkStyle
|
getLabelLinkStyle()
Returns the label link style.
|
boolean
|
getLabelLinksVisible()
Returns the flag that controls whether or not label linking lines are
visible.
|
Paint
|
getLabelOutlinePaint()
Returns the section label outline paint.
|
Stroke
|
getLabelOutlineStroke()
Returns the section label outline stroke.
|
RectangleInsets
|
getLabelPadding()
Returns the label padding.
|
Paint
|
getLabelPaint()
Returns the section label paint.
|
Paint
|
getLabelShadowPaint()
Returns the section label shadow paint.
|
Shape
|
getLegendItemShape()
Returns the shape used for legend items.
|
LegendItemCollection
|
getLegendItems()
Returns a collection of legend items for the pie chart.
|
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.
|
Comparable
|
getSectionKey(int section)
Returns a key for the specified section.
|
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()
|
Paint
|
getSectionOutlinePaint(int section)
|
Stroke
|
getSectionOutlineStroke()
|
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)
|
boolean
|
getSectionOutlinesVisible()
Returns the flag that controls whether or not the outline is drawn for
each pie section.
|
Paint
|
getSectionPaint()
|
Paint
|
getSectionPaint(int section)
|
Paint
|
getSectionPaint(Comparable key)
Returns the paint associated with the specified key, or
null if there is no paint associated with the key.
|
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.
|
RectangleInsets
|
getSimpleLabelOffset()
Returns the offset used for the simple labels, if they are displayed.
|
boolean
|
getSimpleLabels()
Returns the flag that controls whether simple or extended labels are
displayed on the plot.
|
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.
|
Paint
|
lookupSectionOutlinePaint(Comparable key)
Returns the outline paint for the specified section.
|
Paint
|
lookupSectionOutlinePaint(Comparable key, boolean autoPopulate)
Returns the outline paint for the specified section.
|
Stroke
|
lookupSectionOutlineStroke(Comparable key)
Returns the outline stroke for the specified section.
|
Stroke
|
lookupSectionOutlineStroke(Comparable key, boolean autoPopulate)
Returns the outline stroke for the specified section.
|
Paint
|
lookupSectionPaint(Comparable key, boolean autoPopulate)
Returns the paint for the specified section.
|
Paint
|
lookupSectionPaint(Comparable key)
Returns the paint for the specified section.
|
void
|
setAutoPopulateSectionOutlinePaint(boolean auto)
|
void
|
setAutoPopulateSectionOutlineStroke(boolean auto)
|
void
|
setAutoPopulateSectionPaint(boolean auto)
|
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)
|
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)
|
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
|
setLabelDistributor(AbstractPieLabelDistributor distributor)
Sets the label distributor 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
|
setLabelLinkStroke(Stroke stroke)
Sets the link stroke and sends a PlotChangeEvent to all
registered listeners.
|
void
|
setLabelLinkStyle(PieLabelLinkStyle style)
Sets the label link style 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
|
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
|
setLabelPadding(RectangleInsets padding)
Sets the padding between each label and its outline 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(int section, Paint paint)
|
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(Paint paint)
|
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)
|
void
|
setSectionOutlineStroke(Stroke stroke)
|
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
|
setSectionPaint(Comparable key, Paint paint)
Sets the paint associated with the specified key, and sends a
PlotChangeEvent to all registered listeners.
|
void
|
setSectionPaint(Paint paint)
|
void
|
setSectionPaint(int section, Paint paint)
|
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
|
setSimpleLabelOffset(RectangleInsets offset)
Sets the offset for the simple labels and sends a
PlotChangeEvent to all registered listeners.
|
void
|
setSimpleLabels(boolean simple)
Sets the flag that controls whether simple or extended labels are
displayed on the plot, 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.
|