Package com.inet.report.chart.plot
Class MultiplePiePlot
java.lang.Object
com.inet.report.chart.plot.AbstractPlot
com.inet.report.chart.plot.PiePlot
com.inet.report.chart.plot.MultiplePiePlot
- All Implemented Interfaces:
ChartPlot
,Serializable
A general class for plotting data of groups of values. This plot can
use data from any class that implements the
BaseDataset
interface.- Since:
- 8.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inet.report.chart.plot.AbstractPlot
AbstractPlot.GradientSetting
-
Field Summary
Modifier and TypeFieldDescriptionstatic final MultiplePieStyle
Default chart style with this plot.Fields inherited from class com.inet.report.chart.plot.PiePlot
DEFAULT_EXPAND_PERCENT, DEFAULT_ITEM_LABEL_BACKGROUND_COLOR, DEFAULT_ITEM_LABEL_GAP, DEFAULT_ITEM_LABEL_OUTLINE_COLOR, DEFAULT_ITEM_LABEL_OUTLINE_STYLE, DEFAULT_ITEM_LABEL_OUTLINE_WIDTH, DEFAULT_ROTATION_ANGLE, DEFAULT_STYLE
Fields inherited from class com.inet.report.chart.plot.AbstractPlot
DEFAULT_COLOR_SEQUENCE, DEFAULT_FOREGROUND_ALPHA, DEFAULT_ITEM_LABEL_COLOR, DEFAULT_ITEM_LABEL_FONT, DEFAULT_OUTLINE_COLOR, DEFAULT_OUTLINE_STYLE, DEFAULT_OUTLINE_WIDTH, TOKEN_PLOT
-
Constructor Summary
ConstructorDescriptionCreates a multiple pie plot with default properties.MultiplePiePlot
(MultiplePieStyle style) Creates a multiple pie plot with defined chart style. -
Method Summary
Modifier and TypeMethodDescriptionReturns a dataset of typePieDataset
or of typeStandardDataset
.getStyle()
Returns the style of this chart, ie. the general category this plot belongs to.protected void
readDataset
(Element element, Chart2 chart) Reads the dataset properties from DOM element.void
setDataset
(PieDataset dataset) Sets a pie dataset for this chart.void
setDataset
(StandardDataset dataset) Sets the dataset for this plot.void
Overwrites the super implementation.Methods inherited from class com.inet.report.chart.plot.PiePlot
getExpandPercent, getItemLabelBackColor, getItemLabelGap, getItemLabelOutlineColor, getItemLabelOutlineStyle, getItemLabelOutlineWidth, getLegendLayout, getRotationAngle, getSectionIndexes, getSubProperties, isDrawItemLabelOutline, isIgnoreZeroValues, readProperties, refreshAutoTitles, saveSubProperties, setDrawItemLabelOutline, setExpandPercent, setIgnoreZeroValues, setItemLabelBackColor, setItemLabelGap, setItemLabelOutlineColor, setItemLabelOutlineStyle, setItemLabelOutlineWidth, setLegendLayout, setRotationAngle, setSectionIndexes
Methods inherited from class com.inet.report.chart.plot.AbstractPlot
getBackColor, getColorFormula, getColorSequence, getForegroundAlpha, getGradientSetting, getItemLabelColor, getItemLabelFont, getItemLabelFormat, getItemLabelFormatFormula, getItemShape, getOutlineColor, getOutlineStyle, getOutlineWidth, getReferencedObject, isColorBySeries, isDrawOutline, isSameColorsForSameGroups, isShowLabel, isShowValue, saveProperties, setBackColor, setColorBySeries, setColorFormula, setColorSequence, setDrawOutline, setForegroundAlpha, setGradientSetting, setItemLabelColor, setItemLabelFont, setItemLabelFormat, setItemLabelFormatFormula, setItemShape, setOutlineColor, setOutlineStyle, setOutlineWidth, setSameColorsForSameGroups, setShowLabel, setShowValue
-
Field Details
-
DEFAULT_MULTIPLE_STYLE
Default chart style with this plot.
-
-
Constructor Details
-
MultiplePiePlot
public MultiplePiePlot()Creates a multiple pie plot with default properties.- Since:
- 8.0
-
MultiplePiePlot
Creates a multiple pie plot with defined chart style. Initializes all properties with default values.- Parameters:
style
- the chart style (null
not permitted)- Since:
- 8.0
- See Also:
-
-
Method Details
-
getDataset
Returns a dataset of typePieDataset
or of typeStandardDataset
. Note this chart style supports both dataset types.- Specified by:
getDataset
in interfaceChartPlot
- Overrides:
getDataset
in classPiePlot
- Returns:
- the dataset
- Since:
- 8.0
- See Also:
-
setDataset
Sets the dataset for this plot. The multiple pie is the only one pie that can use theStandardDataset
.- Parameters:
dataset
- the dataset to set (null
not permitted)- Since:
- 8.0
- See Also:
-
setDataset
Sets a pie dataset for this chart.- Overrides:
setDataset
in classPiePlot
- Parameters:
dataset
- the pie dataset (null
not permitted)- See Also:
-
getStyle
Returns the style of this chart, ie. the general category this plot belongs to. -
setStyle
Overwrites the super implementation.- Overrides:
setStyle
in classPiePlot
- Parameters:
style
- the style- Throws:
IllegalStateException
- this chart style supports only multiple pie style.- Since:
- 8.0
- See Also:
-
readDataset
Reads the dataset properties from DOM element.- Overrides:
readDataset
in classPiePlot
- Parameters:
element
- the DOM elementchart
- the chart- Since:
- 8.0
-