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

java.lang.Object
  extended by it.eng.spagobi.engines.kpi.bo.ChartImpl
      extended by it.eng.spagobi.engines.kpi.bo.charttypes.dialcharts.SimpleDial

public class SimpleDial
extends ChartImpl

Author:
Chiara Chiarelli

Field Summary
 
Fields inherited from class it.eng.spagobi.engines.kpi.bo.ChartImpl
color, dataset, height, intervals, legend, lower, name, profile, styleSubTitle, styleTitle, subName, target, upper, width
 
Constructor Summary
SimpleDial()
          Instantiates a new simple dial.
 
Method Summary
 void addInterval(KpiInterval interval)
          Adds the interval.
 void configureChart(java.util.HashMap conf)
          This function configures the chart with the parameters passed in the config HashMap
 org.jfree.chart.JFreeChart createChart()
          Creates the chart .
 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.
 java.lang.String setThresholds(java.util.List thresholds)
          This function fills up the vector "intervals" with the intervals of the chart, getting them from a list of Thresholds
 
Methods inherited from class it.eng.spagobi.engines.kpi.bo.ChartImpl
calculateValue, createChart, getColor, getHeight, getName, getProfile, getValueDataSet, getWidth, isLegend, setColor, setHeight, setLegend, setName, setProfile, setStyleTitle, setSubName, setTarget, setValueDataSet, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDial

public SimpleDial()
Instantiates a new simple dial.

Method Detail

configureChart

public void configureChart(java.util.HashMap conf)
Description copied from class: ChartImpl
This function configures the chart with the parameters passed in the config HashMap

Overrides:
configureChart in class ChartImpl

setThresholds

public java.lang.String setThresholds(java.util.List thresholds)
Description copied from class: ChartImpl
This function fills up the vector "intervals" with the intervals of the chart, getting them from a list of Thresholds

Overrides:
setThresholds in class ChartImpl

createChart

public org.jfree.chart.JFreeChart createChart()
Creates the chart .

Overrides:
createChart in class ChartImpl
Returns:
A Simple Dial 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