it.eng.spagobi.engines.chart.bo.charttypes.dialcharts
Class DialCharts

java.lang.Object
  extended by it.eng.spagobi.engines.chart.bo.ChartImpl
      extended by it.eng.spagobi.engines.chart.bo.charttypes.dialcharts.DialCharts
All Implemented Interfaces:
IChart
Direct Known Subclasses:
BulletGraph, Meter, SBISpeedometer, SimpleDial, SpeedometerMultiValue, Thermometer

public class DialCharts
extends ChartImpl

* @author Giulio Gavardi giulio.gavardi@eng.it


Field Summary
protected  double lower
           
protected  double upper
           
 
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
DialCharts()
           
 
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.
 double getLower()
          Gets the lower.
 it.eng.spago.base.SourceBean getSbRow()
          Gets the sb row.
 double getUpper()
          Gets the upper.
 boolean isLovConfDefined()
          Checks if is lov conf defined.
 void setConfParameters(java.util.Map confParameters)
          Sets the conf parameters.
 void setLovConfDefined(boolean isLovConfDefined)
          Sets the lov conf defined.
 void setLower(double lower)
          Sets the lower.
 void setSbRow(it.eng.spago.base.SourceBean sbRow)
          Sets the sb row.
 void setUpper(double upper)
          Sets the upper.
 
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, isSlider, setChangeViewChecked, setChangeViewsParameter, setColor, setConfDataset, setData, setFilter, setHeight, setLegend, setLegendPosition, setLocalizedTitle, 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
 

Field Detail

lower

protected double lower

upper

protected double upper
Constructor Detail

DialCharts

public DialCharts()
Method Detail

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

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

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

getLower

public double getLower()
Gets the lower.

Returns:
the lower

setLower

public void setLower(double lower)
Sets the lower.

Parameters:
lower - the new lower

getUpper

public double getUpper()
Gets the upper.

Returns:
the upper

setUpper

public void setUpper(double upper)
Sets the upper.

Parameters:
upper - the new upper

isLovConfDefined

public boolean isLovConfDefined()
Description copied from class: ChartImpl
Checks if is lov conf defined.

Overrides:
isLovConfDefined in class ChartImpl
Returns:
true, if is lov conf defined

setLovConfDefined

public void setLovConfDefined(boolean isLovConfDefined)
Description copied from class: ChartImpl
Sets the lov conf defined.

Overrides:
setLovConfDefined in class ChartImpl
Parameters:
isLovConfDefined - the new lov conf defined

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

getSbRow

public it.eng.spago.base.SourceBean getSbRow()
Gets the sb row.

Returns:
the sb row

setSbRow

public void setSbRow(it.eng.spago.base.SourceBean sbRow)
Sets the sb row.

Parameters:
sbRow - the new sb row