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

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

public class SimpleDial
extends DialCharts

Author:
Giulio Gavardi

Field Summary
static java.lang.String CHANGE_VIEW_HORIZONTAL
           
static java.lang.String CHANGE_VIEW_LABEL
           
static java.lang.String CHANGE_VIEW_LABEL1
           
static java.lang.String CHANGE_VIEW_LABEL2
           
 
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
SimpleDial()
          Instantiates a new simple dial.
 
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 the chart .
 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.
 double getIncrement()
          Gets the increment.
 java.util.Vector getIntervals()
          Gets the intervals.
 int getMinorTickCount()
          Gets the minor tick count.
 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.
 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, getColor, getConfDataset, getData, getHeight, getLegendPosition, getMultichart, getName, getOrientationMultichart, getParametersObject, getPositionSlider, getProfile, getSeriesLabels, getSubName, getSubtype, getTitleDimension, getType, getWidth, isFilter, isLegend, isLinkable, isSlider, setChangeViewChecked, 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

CHANGE_VIEW_HORIZONTAL

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

CHANGE_VIEW_LABEL

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

CHANGE_VIEW_LABEL1

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

CHANGE_VIEW_LABEL2

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

SimpleDial

public SimpleDial()
Instantiates a new simple dial.

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 the chart .

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

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

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

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

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

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