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

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

public class Meter
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
COLOR_INTERVAL, INTERVAL, INTERVALS_NUMBER, LABEL_INTERVAL, LEGEND, lower, LOWER, MAX_INTERVAL, MIN_INTERVAL, MULTICHART, ORIENTATION_MULTICHART, STYLE_TICK_LABELS, STYLE_VALUE_LABEL, units, UNITS, upper, UPPER
 
Fields inherited from class it.eng.spagobi.engines.chart.bo.ChartImpl
BARCHART, blockchart, BLOCKCHART, BOXCHART, bullet, CLUSTERCHART, color, COLOR_STYLE, COLORS_BACKGROUND, combined_category_bar, CONF, CONF_DATASET, confDataset, data, defaultLabelsStyle, DIAL_CHART, DIMENSION_HEIGHT, DIMENSION_WIDTH, filter, FONT_STYLE, height, isLovConfDefined, legend, LEGEND_POSITION, LEGEND_STYLE, legendPosition, linkablebar, linkablepie, locale, markerscatter, meter, multichart, name, NAME, NAME_STYLE, ORIENTATION_STYLE, orientationMultichart, overlaid_barline, overlaid_stackedbarline, parametersObject, PIECHART, POSITION_SLIDER, positionSlider, profile, SCATTERCHART, SERIES_LABELS, seriesLabelsMap, simplebar, simplebox, simplecluster, simpledial, simplepie, simplescatter, simpletimeblock, SIZE_STYLE, slider, SLIDER_START_FROM_END, sliderStartFromEnd, sparkline, speedometer, speedometerMultiValue, stacked_bar, stacked_bar_group, STYLE_LABELS_DEFAULT, STYLE_SUBTITLE, STYLE_TITLE, styleLegend, styleSubTitle, styleTitle, subName, subtype, TARGETCHART, thermomether, TITLE_DIMENSION, titleDimension, type, VIEW_FILTER, VIEW_SLIDER, width, winlose, XYCHART
 
Constructor Summary
Meter()
          Instantiates a new meter.
 
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 .
 java.util.Vector getIntervals()
          Gets the intervals.
 
Methods inherited from class it.eng.spagobi.engines.chart.bo.charttypes.dialcharts.DialCharts
calculateValue, getConfParameters, getLower, getSbRow, getUnits, getUpper, isLovConfDefined, setConfParameters, setLovConfDefined, setLower, setSbRow, setUnits, setUpper
 
Methods inherited from class it.eng.spagobi.engines.chart.bo.ChartImpl
createChart, drawLegend, filterDataset, getChangeViewLabel, getChangeViewParameter, getChangeViewParameterLabel, getColor, getConfDataset, getData, getHeight, getLegendPosition, getLocale, getMultichart, getName, getOrientationMultichart, getParametersObject, getPositionSlider, getPossibleChangePars, getProfile, getSeriesLabels, getSubName, getSubtype, getTitleDimension, getType, getWidth, isChangeableView, isFilter, isLegend, isLinkable, isSlider, isSliderStartFromEnd, setChangeViewChecked, setChangeViewsParameter, setColor, setConfDataset, setData, setFilter, setHeight, setLegend, setLegendPosition, setLocale, setLocalizedTitle, setMultichart, setName, setOrientationMultichart, setParametersObject, setPositionSlider, setProfile, setSeriesLabels, setSlider, setSliderStartFromEnd, 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

Meter

public Meter()
Instantiates a new meter.

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 .

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