org.jfree.chart.plot
public class MultiplePiePlot extends Plot implements Cloneable, Serializable
Constructor Summary | |
---|---|
MultiplePiePlot()
Creates a new plot with no data. | |
MultiplePiePlot(CategoryDataset dataset)
Creates a new plot.
|
Method Summary | |
---|---|
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).
|
boolean | equals(Object obj)
Tests this plot for equality with an arbitrary object. |
Comparable | getAggregatedItemsKey()
Returns the key for aggregated items in the pie plots, if there are any.
|
Paint | getAggregatedItemsPaint()
Returns the paint used to draw the pie section representing the
aggregated items. |
TableOrder | getDataExtractOrder()
Returns the data extract order (by row or by column).
|
CategoryDataset | getDataset()
Returns the dataset used by the plot.
|
LegendItemCollection | getLegendItems()
Returns a collection of legend items for the pie chart.
|
double | getLimit()
Returns the limit (as a percentage) below which small pie sections are
aggregated.
|
JFreeChart | getPieChart()
Returns the pie chart that is used to draw the individual pie plots.
|
String | getPlotType()
Returns a short string describing the type of plot.
|
void | setAggregatedItemsKey(Comparable key)
Sets the key for aggregated items in the pie plots. |
void | setAggregatedItemsPaint(Paint paint)
Sets the paint used to draw the pie section representing the aggregated
items and sends a PlotChangeEvent to all registered listeners.
|
void | setDataExtractOrder(TableOrder order)
Sets the data extract order (by row or by column) and sends a
PlotChangeEvent to all registered listeners.
|
void | setDataset(CategoryDataset dataset)
Sets the dataset used by the plot and sends a PlotChangeEvent
to all registered listeners.
|
void | setLimit(double limit)
Sets the limit below which pie sections are aggregated.
|
void | setPieChart(JFreeChart pieChart)
Sets the chart that is used to draw the individual pie plots.
|
Parameters: dataset the dataset (null
permitted).
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.
Parameters: obj the object (null
permitted).
Returns: true
if this plot is equal to obj
, and
false
otherwise.
Returns: The aggregated items key.
Since: 1.0.2
Color.lightGray
.
Returns: The paint.
Since: 1.0.2
Returns: The data extract order (never null
).
Returns: The dataset (possibly null
).
Returns: The legend items.
Returns: The limit percentage.
Returns: The pie chart.
Returns: The plot type.
Parameters: key the key (null
not permitted).
Since: 1.0.2
Parameters: paint the paint (null
not permitted).
Since: 1.0.2
Parameters: order the order (null
not permitted).
Parameters: dataset the dataset (null
permitted).
Parameters: limit the limit percent.
Parameters: pieChart the pie chart.