i-net Clear Reports

com.inet.report.chart.plot
Class MultiplePiePlot

java.lang.Object
  extended by com.inet.report.chart.plot.AbstractPlot
      extended by com.inet.report.chart.plot.PiePlot
          extended by 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 the BaseDataset 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
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
MultiplePiePlot()
          Creates a multiple pie plot with default properties.
MultiplePiePlot(MultiplePieStyle style)
          Creates a multiple pie plot with defined chart style.
 
Method Summary
 BaseDataset getDataset()
          Returns a dataset of type PieDataset or of type StandardDataset.
 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(StandardDataset dataset)
          Sets the dataset for this plot.
 void setDataset(PieDataset dataset)
          Sets a pie dataset for this chart.
 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, getItemShape, getOutlineColor, getOutlineStyle, getOutlineWidth, getReferencedObject, isColorBySeries, isDrawOutline, isSameColorsForSameGroups, isShowLabel, isShowValue, saveProperties, setBackColor, setColorBySeries, setColorFormula, setColorSequence, setDrawOutline, setForegroundAlpha, setGradientSetting, setItemLabelColor, setItemLabelFont, setItemLabelFormat, 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 type PieDataset or of type StandardDataset. Note this chart style supports both dataset types.

Specified by:
getDataset in interface ChartPlot
Overrides:
getDataset in class PiePlot
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 the StandardDataset.

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 class PiePlot
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 class PiePlot
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 class PiePlot
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 class PiePlot
Parameters:
element - the DOM element
chart - the chart
Since:
8.0

i-net Clear Reports

Copyright © 1999-2011 by i-net software GmbH