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

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

public class SimplePie
extends PieCharts


Field Summary
static java.lang.String CHANGE_VIEW_3D
           
static java.lang.String CHANGE_VIEW_3D_LABEL
           
static java.lang.String CHANGE_VIEW_3D_LABEL1
           
static java.lang.String CHANGE_VIEW_3D_LABEL2
           
static java.lang.String CHANGE_VIEW_PERCENTAGE
           
static java.lang.String CHANGE_VIEW_PERCENTAGE_LABEL
           
static java.lang.String CHANGE_VIEW_PERCENTAGE_LABEL1
           
static java.lang.String CHANGE_VIEW_PERCENTAGE_LABEL2
           
 
Fields inherited from class it.eng.spagobi.engines.chart.bo.ChartImpl
color, confDataset, data, defaultLabelsStyle, filter, height, isLovConfDefined, legend, legendPosition, name, parametersObject, profile, seriesLabelsMap, slider, styleSubTitle, styleTitle, subName, subtype, titleDimension, type, width
 
Constructor Summary
SimplePie()
           
 
Method Summary
 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 datasets)
          This function creates the chart object.
 boolean getChangeViewParameter(java.lang.String changePar)
          Gets the change view parameter.
 java.lang.String getChangeViewParameterLabel(java.lang.String changePar, int i)
          Gets the change view parameter label.
 java.util.List getPossibleChangePars()
          Gets the possible change pars.
 boolean isChangeableView()
          Checks if is changeable view.
 void setChangeViewsParameter(java.lang.String changePar, boolean how)
          Sets the change views parameter.
 
Methods inherited from class it.eng.spagobi.engines.chart.bo.charttypes.piecharts.PieCharts
calculateValue, getConfParameters, setConfParameters
 
Methods inherited from class it.eng.spagobi.engines.chart.bo.ChartImpl
createChart, drawLegend, filterDataset, getChangeViewLabel, getColor, getConfDataset, getData, getHeight, getLegendPosition, getName, getParametersObject, getProfile, getSeriesLabels, getSubtype, getTitleDimension, getType, getWidth, isFilter, isLegend, isLinkable, isLovConfDefined, isSlider, setChangeViewChecked, setColor, setConfDataset, setData, setFilter, setHeight, setLegend, setLegendPosition, setLovConfDefined, setName, setParametersObject, setProfile, setSeriesLabels, setSlider, setStyleTitle, setSubName, setSubtype, setTitleDimension, setTitleParameter, setType, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANGE_VIEW_3D_LABEL

public static final java.lang.String CHANGE_VIEW_3D_LABEL
See Also:
Constant Field Values

CHANGE_VIEW_3D_LABEL1

public static final java.lang.String CHANGE_VIEW_3D_LABEL1
See Also:
Constant Field Values

CHANGE_VIEW_3D_LABEL2

public static final java.lang.String CHANGE_VIEW_3D_LABEL2
See Also:
Constant Field Values

CHANGE_VIEW_3D

public static final java.lang.String CHANGE_VIEW_3D
See Also:
Constant Field Values

CHANGE_VIEW_PERCENTAGE_LABEL

public static final java.lang.String CHANGE_VIEW_PERCENTAGE_LABEL
See Also:
Constant Field Values

CHANGE_VIEW_PERCENTAGE_LABEL1

public static final java.lang.String CHANGE_VIEW_PERCENTAGE_LABEL1
See Also:
Constant Field Values

CHANGE_VIEW_PERCENTAGE_LABEL2

public static final java.lang.String CHANGE_VIEW_PERCENTAGE_LABEL2
See Also:
Constant Field Values

CHANGE_VIEW_PERCENTAGE

public static final java.lang.String CHANGE_VIEW_PERCENTAGE
See Also:
Constant Field Values
Constructor Detail

SimplePie

public SimplePie()
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 PieCharts
Parameters:
content - the content

createChart

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

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

isChangeableView

public boolean isChangeableView()
Description copied from interface: IChart
Checks if is changeable view.

Specified by:
isChangeableView in interface IChart
Overrides:
isChangeableView in class ChartImpl
Returns:
true, if is changeable view

setChangeViewsParameter

public void setChangeViewsParameter(java.lang.String changePar,
                                    boolean how)
Description copied from interface: IChart
Sets the change views parameter.

Specified by:
setChangeViewsParameter in interface IChart
Overrides:
setChangeViewsParameter in class ChartImpl
Parameters:
changePar - the change par
how - the how

getChangeViewParameter

public boolean getChangeViewParameter(java.lang.String changePar)
Description copied from interface: IChart
Gets the change view parameter.

Specified by:
getChangeViewParameter in interface IChart
Overrides:
getChangeViewParameter in class ChartImpl
Parameters:
changePar - the change par
Returns:
the change view parameter

getChangeViewParameterLabel

public java.lang.String getChangeViewParameterLabel(java.lang.String changePar,
                                                    int i)
Description copied from interface: IChart
Gets the change view parameter label.

Specified by:
getChangeViewParameterLabel in interface IChart
Overrides:
getChangeViewParameterLabel in class ChartImpl
Parameters:
changePar - the change par
i - the i
Returns:
the change view parameter label

getPossibleChangePars

public java.util.List getPossibleChangePars()
Description copied from interface: IChart
Gets the possible change pars.

Specified by:
getPossibleChangePars in interface IChart
Overrides:
getPossibleChangePars in class ChartImpl
Returns:
the possible change pars