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

java.lang.Object
  extended by it.eng.spagobi.engines.chart.bo.ChartImpl
      extended by it.eng.spagobi.engines.chart.bo.charttypes.dialcharts.DialCharts
All Implemented Interfaces:
IChart
Direct Known Subclasses:
BulletGraph, Meter, SBISpeedometer, SimpleDial, SpeedometerMultiValue, Thermometer

public class DialCharts
extends ChartImpl

* @author Giulio Gavardi giulio.gavardi@eng.it


Field Summary
static java.lang.String COLOR_INTERVAL
           
static java.lang.String INTERVAL
          Tag to define INTERVAL and attributes (not used by all dial charts
static java.lang.String INTERVALS_NUMBER
           
static java.lang.String LABEL_INTERVAL
           
static java.lang.String LEGEND
          if to draw the legend
protected  double lower
           
static java.lang.String LOWER
          Lower Bound
static java.lang.String MAX_INTERVAL
           
static java.lang.String MIN_INTERVAL
           
static java.lang.String MULTICHART
          multichart
static java.lang.String ORIENTATION_MULTICHART
          orientation multichart: can be horiontal o vertical
static java.lang.String STYLE_TICK_LABELS
          Style for tick labels
static java.lang.String STYLE_VALUE_LABEL
          Style for value labels
protected  java.lang.String units
           
static java.lang.String UNITS
          Units
protected  double upper
           
static java.lang.String UPPER
          Upper bound
 
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
DialCharts()
           
 
Method Summary
 DatasetMap calculateValue()
          Calculate value.
 void configureChart(it.eng.spago.base.SourceBean content)
          configureChart reads the content of the template and sets the chart parameters.
 org.jfree.chart.JFreeChart createChart(DatasetMap dataset)
          This function creates the chart object.
 java.util.Map getConfParameters()
          Gets the conf parameters.
 double getLower()
          Gets the lower.
 it.eng.spago.base.SourceBean getSbRow()
          Gets the sb row.
 java.lang.String getUnits()
           
 double getUpper()
          Gets the upper.
 boolean isLovConfDefined()
          Checks if is lov conf defined.
 void setConfParameters(java.util.Map confParameters)
          Sets the conf parameters.
 void setLovConfDefined(boolean isLovConfDefined)
          Sets the lov conf defined.
 void setLower(double lower)
          Sets the lower.
 void setSbRow(it.eng.spago.base.SourceBean sbRow)
          Sets the sb row.
 void setUnits(java.lang.String units)
           
 void setUpper(double upper)
          Sets the upper.
 
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
 

Field Detail

lower

protected double lower

upper

protected double upper

units

protected java.lang.String units

STYLE_TICK_LABELS

public static final java.lang.String STYLE_TICK_LABELS
Style for tick labels

See Also:
Constant Field Values

STYLE_VALUE_LABEL

public static final java.lang.String STYLE_VALUE_LABEL
Style for value labels

See Also:
Constant Field Values

UPPER

public static final java.lang.String UPPER
Upper bound

See Also:
Constant Field Values

LOWER

public static final java.lang.String LOWER
Lower Bound

See Also:
Constant Field Values

UNITS

public static final java.lang.String UNITS
Units

See Also:
Constant Field Values

MULTICHART

public static final java.lang.String MULTICHART
multichart

See Also:
Constant Field Values

ORIENTATION_MULTICHART

public static final java.lang.String ORIENTATION_MULTICHART
orientation multichart: can be horiontal o vertical

See Also:
Constant Field Values

LEGEND

public static final java.lang.String LEGEND
if to draw the legend

See Also:
Constant Field Values

INTERVAL

public static final java.lang.String INTERVAL
Tag to define INTERVAL and attributes (not used by all dial charts

See Also:
Constant Field Values

LABEL_INTERVAL

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

MIN_INTERVAL

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

MAX_INTERVAL

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

COLOR_INTERVAL

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

INTERVALS_NUMBER

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

DialCharts

public DialCharts()
Method Detail

createChart

public org.jfree.chart.JFreeChart createChart(DatasetMap dataset)
Description copied from class: ChartImpl
This function creates the chart object.

Specified by:
createChart in interface IChart
Overrides:
createChart in class ChartImpl
Parameters:
dataset - the dataset
Returns:
the j free chart

configureChart

public void configureChart(it.eng.spago.base.SourceBean content)
Description copied from class: ChartImpl
configureChart reads the content of the template and sets the chart parameters.

Specified by:
configureChart in interface IChart
Overrides:
configureChart in class ChartImpl
Parameters:
content - the content

calculateValue

public DatasetMap calculateValue()
                          throws java.lang.Exception
Description copied from interface: IChart
Calculate value.

Specified by:
calculateValue in interface IChart
Overrides:
calculateValue in class ChartImpl
Returns:
A map of datasets (usually only one)
Throws:
java.lang.Exception - the exception

getLower

public double getLower()
Gets the lower.

Returns:
the lower

setLower

public void setLower(double lower)
Sets the lower.

Parameters:
lower - the new lower

getUpper

public double getUpper()
Gets the upper.

Returns:
the upper

setUpper

public void setUpper(double upper)
Sets the upper.

Parameters:
upper - the new upper

isLovConfDefined

public boolean isLovConfDefined()
Description copied from class: ChartImpl
Checks if is lov conf defined.

Overrides:
isLovConfDefined in class ChartImpl
Returns:
true, if is lov conf defined

setLovConfDefined

public void setLovConfDefined(boolean isLovConfDefined)
Description copied from class: ChartImpl
Sets the lov conf defined.

Overrides:
setLovConfDefined in class ChartImpl
Parameters:
isLovConfDefined - the new lov conf defined

getConfParameters

public java.util.Map getConfParameters()
Gets the conf parameters.

Returns:
the conf parameters

setConfParameters

public void setConfParameters(java.util.Map confParameters)
Sets the conf parameters.

Parameters:
confParameters - the new conf parameters

getSbRow

public it.eng.spago.base.SourceBean getSbRow()
Gets the sb row.

Returns:
the sb row

setSbRow

public void setSbRow(it.eng.spago.base.SourceBean sbRow)
Sets the sb row.

Parameters:
sbRow - the new sb row

getUnits

public java.lang.String getUnits()

setUnits

public void setUnits(java.lang.String units)