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

java.lang.Object
  extended by it.eng.spagobi.engines.chart.bo.ChartImpl
      extended by it.eng.spagobi.engines.chart.bo.charttypes.dialcharts.DialCharts
          extended by it.eng.spagobi.engines.chart.bo.charttypes.dialcharts.SBISpeedometer
All Implemented Interfaces:
IChart

public class SBISpeedometer
extends DialCharts

A class to generate Speedometer charts

Author:
Giulio Gavardi

Field Summary
 
Fields inherited from class it.eng.spagobi.engines.chart.bo.charttypes.dialcharts.DialCharts
lower, upper
 
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
SBISpeedometer()
          Instantiates a new sBI speedometer.
 
Method Summary
 void addInterval(KpiInterval interval)
          Adds the interval.
 void configureChart(it.eng.spago.base.SourceBean content)
          set parameters for the creation of the chart getting them from template or from LOV.
 org.jfree.chart.JFreeChart createChart(DatasetMap datasets)
          Creates a chart of type speedometer.
 double getIncrement()
          Gets the increment.
 java.util.Vector getIntervals()
          Gets the intervals.
 int getMinorTickCount()
          Gets the minor tick count.
 void setIncrement(double increment)
          Sets the increment.
 void setMinorTickCount(int minorTickCount)
          Sets the minor tick count.
 
Methods inherited from class it.eng.spagobi.engines.chart.bo.charttypes.dialcharts.DialCharts
calculateValue, getConfParameters, getLower, getSbRow, getUpper, isLovConfDefined, setConfParameters, setLovConfDefined, setLower, setSbRow, setUpper
 
Methods inherited from class it.eng.spagobi.engines.chart.bo.ChartImpl
createChart, drawLegend, filterDataset, getChangeViewLabel, getChangeViewParameter, getChangeViewParameterLabel, getColor, getConfDataset, getData, getHeight, getLegendPosition, getName, getParametersObject, getPossibleChangePars, getProfile, getSeriesLabels, getSubtype, getTitleDimension, getType, getWidth, isChangeableView, isFilter, isLegend, isLinkable, isSlider, setChangeViewChecked, setChangeViewsParameter, setColor, setConfDataset, setData, setFilter, setHeight, setLegend, setLegendPosition, setLocalizedTitle, 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
 

Constructor Detail

SBISpeedometer

public SBISpeedometer()
Instantiates a new sBI speedometer.

Method Detail

configureChart

public void configureChart(it.eng.spago.base.SourceBean content)
set parameters for the creation of the chart getting them from template or from LOV.

Specified by:
configureChart in interface IChart
Overrides:
configureChart in class DialCharts
Parameters:
content - the content of the template.

createChart

public org.jfree.chart.JFreeChart createChart(DatasetMap datasets)
Creates a chart of type speedometer.

Specified by:
createChart in interface IChart
Overrides:
createChart in class DialCharts
Parameters:
chartTitle - the chart title.
dataset - the dataset.
Returns:
A chart speedometer.

getIntervals

public java.util.Vector getIntervals()
Gets the intervals.

Returns:
the intervals

addInterval

public void addInterval(KpiInterval interval)
Adds the interval.

Parameters:
interval - the interval

getIncrement

public double getIncrement()
Gets the increment.

Returns:
the increment

setIncrement

public void setIncrement(double increment)
Sets the increment.

Parameters:
increment - the new increment

getMinorTickCount

public int getMinorTickCount()
Gets the minor tick count.

Returns:
the minor tick count

setMinorTickCount

public void setMinorTickCount(int minorTickCount)
Sets the minor tick count.

Parameters:
minorTickCount - the new minor tick count