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
FieldsModifier and TypeFieldDescriptionstatic final MultiplePieStyleDefault 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_SECTION_DEPTH, DEFAULT_STYLEFields 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
ConstructorsConstructorDescriptionCreates 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 typePieDatasetor of typeStandardDataset.getStyle()Returns the style of this chart, ie. the general category this plot belongs to.protected voidreadDataset(Element element, Chart2 chart) Reads the dataset properties from DOM element.voidsetDataset(PieDataset dataset) Sets a pie dataset for this chart.voidsetDataset(StandardDataset dataset) Sets the dataset for this plot.voidOverwrites the super implementation.Methods inherited from class com.inet.report.chart.plot.PiePlot
getExpandPercent, getItemLabelBackColor, getItemLabelGap, getItemLabelOutlineColor, getItemLabelOutlineStyle, getItemLabelOutlineWidth, getLegendLayout, getRotationAngle, getSectionDepth, getSectionIndexes, getSubProperties, isDrawItemLabelOutline, isIgnoreZeroValues, readProperties, refreshAutoTitles, saveSubProperties, setDrawItemLabelOutline, setExpandPercent, setIgnoreZeroValues, setItemLabelBackColor, setItemLabelGap, setItemLabelOutlineColor, setItemLabelOutlineStyle, setItemLabelOutlineWidth, setLegendLayout, setRotationAngle, setSectionDepth, setSectionIndexesMethods 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 (nullnot permitted)- Since:
- 8.0
- See Also:
-
-
Method Details
-
getDataset
Returns a dataset of typePieDatasetor of typeStandardDataset. Note this chart style supports both dataset types.- Specified by:
getDatasetin interfaceChartPlot- Overrides:
getDatasetin 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 (nullnot permitted)- Since:
- 8.0
- See Also:
-
setDataset
Sets a pie dataset for this chart.- Overrides:
setDatasetin classPiePlot- Parameters:
dataset- the pie dataset (nullnot permitted)- See Also:
-
getStyle
Returns the style of this chart, ie. the general category this plot belongs to. -
setStyle
Overwrites the super implementation.- Overrides:
setStylein 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:
readDatasetin classPiePlot- Parameters:
element- the DOM elementchart- the chart- Since:
- 8.0
-