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

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.SpeedometerMultiValue
All Implemented Interfaces:
IChart

public class SpeedometerMultiValue
extends DialCharts

A class to generate Speedometer charts with multi-needle

Author:
Antonella Giachino

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, multichart, name, orientationMultichart, parametersObject, positionSlider, profile, seriesLabelsMap, slider, styleSubTitle, styleTitle, subName, subtype, titleDimension, type, width
 
Constructor Summary
SpeedometerMultiValue()
          Instantiates a new sBI speedometer.
 
Method Summary
 void addInterval(KpiInterval interval)
          Adds the interval.
 DatasetMap calculateValue()
          Inherited by IChart: calculates chart value.
 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.
 java.util.Vector getValuesNames()
           
 void setIncrement(double increment)
          Sets the increment.
 void setMinorTickCount(int minorTickCount)
          Sets the minor tick count.
 void setValuesNames(java.util.Vector valuesNames)
           
 
Methods inherited from class it.eng.spagobi.engines.chart.bo.charttypes.dialcharts.DialCharts
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, 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
 

Constructor Detail

SpeedometerMultiValue

public SpeedometerMultiValue()
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.

calculateValue

public DatasetMap calculateValue()
                          throws java.lang.Exception
Inherited by IChart: calculates chart value.

Specified by:
calculateValue in interface IChart
Overrides:
calculateValue in class DialCharts
Returns:
the dataset
Throws:
java.lang.Exception - the exception

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.

getValuesNames

public java.util.Vector getValuesNames()
Returns:
the valuesNames

setValuesNames

public void setValuesNames(java.util.Vector valuesNames)
Parameters:
valuesNames - the valuesNames to set

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