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
,java.io.Serializable
public class MultiplePiePlot extends PiePlot
A general class for plotting data of groups of values. This plot can use data from any class that implements theBaseDataset
interface.- Since:
- 8.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inet.report.chart.plot.AbstractPlot
AbstractPlot.GradientSetting
-
-
Field Summary
Fields Modifier and Type Field Description static MultiplePieStyle
DEFAULT_MULTIPLE_STYLE
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
Constructors Constructor Description MultiplePiePlot()
Creates a multiple pie plot with default properties.MultiplePiePlot(MultiplePieStyle style)
Creates a multiple pie plot with defined chart style.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseDataset
getDataset()
Returns a dataset of typePieDataset
or of typeStandardDataset
.ChartStyle
getStyle()
Returns the style of this chart, ie. the general category this plot belongs to.protected void
readDataset(org.w3c.dom.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
setStyle(PieStyle style)
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 Detail
-
DEFAULT_MULTIPLE_STYLE
public static final MultiplePieStyle DEFAULT_MULTIPLE_STYLE
Default chart style with this plot.
-
-
Constructor Detail
-
MultiplePiePlot
public MultiplePiePlot()
Creates a multiple pie plot with default properties.- Since:
- 8.0
-
MultiplePiePlot
public MultiplePiePlot(MultiplePieStyle style)
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:
MultiplePieStyle
-
-
Method Detail
-
getDataset
public BaseDataset 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(PieDataset)
,setDataset(StandardDataset)
,ForAllRecordsDataset
,ForEachRecordDataset
,OneGroupDataset
,TwoGroupsDataset
-
setDataset
public void setDataset(StandardDataset dataset)
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:
getDataset()
,StandardDataset
,ForAllRecordsDataset
,ForEachRecordDataset
,OneGroupDataset
,TwoGroupsDataset
-
setDataset
public void setDataset(PieDataset dataset)
Sets a pie dataset for this chart.- Overrides:
setDataset
in classPiePlot
- Parameters:
dataset
- the pie dataset (null
not permitted)- See Also:
PiePlot.getDataset()
,PieDataset
,ForAllRecordsDataset
,ForEachRecordDataset
,OneGroupDataset
-
getStyle
public ChartStyle getStyle()
Returns the style of this chart, ie. the general category this plot belongs to.- Overrides:
getStyle
in classPiePlot
- Returns:
- the style
- See Also:
BarStyle.BAR2D
,LineStyle.LINE_MARKER
,AreaStyle.AREA2D_STACKED
-
setStyle
public void setStyle(PieStyle style)
Overwrites the super implementation.- Overrides:
setStyle
in classPiePlot
- Parameters:
style
- the style- Throws:
java.lang.IllegalStateException
- this chart style supports only multiple pie style.- Since:
- 8.0
- See Also:
getStyle()
-
readDataset
protected void readDataset(org.w3c.dom.Element element, Chart2 chart)
Reads the dataset properties from DOM element.- Overrides:
readDataset
in classPiePlot
- Parameters:
element
- the DOM elementchart
- the chart- Since:
- 8.0
-
-