|
||||||||||
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.MultiplePiePlot
A plot that displays multiple pie plots using data from a
CategoryDataset
.
Field Summary |
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 | |
MultiplePiePlot()
Creates a new plot with no data. |
|
MultiplePiePlot(CategoryDataset dataset)
Creates a new plot. |
Method Summary | |
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). |
TableOrder |
getDataExtractOrder()
Returns the data extract order (by row or by column). |
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. |
java.lang.String |
getPlotType()
Returns a short string describing the type of plot. |
void |
setDataExtractOrder(TableOrder order)
Sets the data extract order (by row or by column) 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. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultiplePiePlot()
public MultiplePiePlot(CategoryDataset dataset)
dataset
- the dataset (null
permitted).Method Detail |
public JFreeChart getPieChart()
public void setPieChart(JFreeChart pieChart)
pieChart
- the pie chart.public TableOrder getDataExtractOrder()
null
).public void setDataExtractOrder(TableOrder order)
PlotChangeEvent
to all registered listeners.
order
- the order (null
not permitted).public double getLimit()
public void setLimit(double limit)
limit
- the limit percent.public java.lang.String getPlotType()
getPlotType
in class Plot
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.public LegendItemCollection getLegendItems()
getLegendItems
in interface LegendItemSource
getLegendItems
in class Plot
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |