it.eng.spagobi.engines.chart.bo.charttypes.piecharts
Class PieCharts

java.lang.Object
  extended by it.eng.spagobi.engines.chart.bo.ChartImpl
      extended by it.eng.spagobi.engines.chart.bo.charttypes.piecharts.PieCharts
All Implemented Interfaces:
IChart
Direct Known Subclasses:
LinkablePie, SimplePie

public class PieCharts
extends ChartImpl


Field Summary
 
Fields inherited from class it.eng.spagobi.engines.chart.bo.ChartImpl
color, confDataset, data, defaultLabelsStyle, filter, height, isLovConfDefined, legend, legendPosition, multichart, name, orientationMultichart, parametersObject, positionSlider, profile, seriesLabelsMap, slider, styleSubTitle, styleTitle, subName, subtype, titleDimension, type, width
 
Constructor Summary
PieCharts()
           
 
Method Summary
 DatasetMap calculateValue()
          Calculate value.
 void configureChart(it.eng.spago.base.SourceBean content)
          configureChart reads the content of the template and sets the chart parameters.
 org.jfree.chart.JFreeChart createChart(DatasetMap dataset)
          This function creates the chart object.
 java.util.Map getConfParameters()
          Gets the conf parameters.
 void setConfParameters(java.util.Map confParameters)
          Sets the conf parameters.
 
Methods inherited from class it.eng.spagobi.engines.chart.bo.ChartImpl
createChart, drawLegend, filterDataset, getChangeViewLabel, getChangeViewParameter, getChangeViewParameterLabel, getColor, getConfDataset, getData, getHeight, getLegendPosition, getMultichart, getName, getOrientationMultichart, getParametersObject, getPositionSlider, getPossibleChangePars, getProfile, getSeriesLabels, getSubName, getSubtype, getTitleDimension, getType, getWidth, isChangeableView, isFilter, isLegend, isLinkable, isLovConfDefined, isSlider, setChangeViewChecked, setChangeViewsParameter, setColor, setConfDataset, setData, setFilter, setHeight, setLegend, setLegendPosition, setLocalizedTitle, setLovConfDefined, setMultichart, setName, setOrientationMultichart, setParametersObject, setPositionSlider, setProfile, setSeriesLabels, setSlider, setStyleTitle, setSubName, setSubTitleParameter, setSubTitleParameter, setSubtype, setTitleDimension, setTitleParameter, setTitleParameter, setType, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PieCharts

public PieCharts()
Method Detail

configureChart

public void configureChart(it.eng.spago.base.SourceBean content)
Description copied from class: ChartImpl
configureChart reads the content of the template and sets the chart parameters.

Specified by:
configureChart in interface IChart
Overrides:
configureChart in class ChartImpl
Parameters:
content - the content

createChart

public org.jfree.chart.JFreeChart createChart(DatasetMap dataset)
Description copied from class: ChartImpl
This function creates the chart object.

Specified by:
createChart in interface IChart
Overrides:
createChart in class ChartImpl
Parameters:
dataset - the dataset
Returns:
the j free chart

calculateValue

public DatasetMap calculateValue()
                          throws java.lang.Exception
Description copied from interface: IChart
Calculate value.

Specified by:
calculateValue in interface IChart
Overrides:
calculateValue in class ChartImpl
Returns:
A map of datasets (usually only one)
Throws:
java.lang.Exception - the exception

getConfParameters

public java.util.Map getConfParameters()
Gets the conf parameters.

Returns:
the conf parameters

setConfParameters

public void setConfParameters(java.util.Map confParameters)
Sets the conf parameters.

Parameters:
confParameters - the new conf parameters