it.eng.spagobi.engines.chart.bo.charttypes.targetcharts
Class TargetCharts

java.lang.Object
  extended by it.eng.spagobi.engines.chart.bo.ChartImpl
      extended by it.eng.spagobi.engines.chart.bo.charttypes.targetcharts.TargetCharts
All Implemented Interfaces:
IChart
Direct Known Subclasses:
SparkLine, WinLose

public class TargetCharts
extends ChartImpl


Field Summary
static java.lang.String BASELINES
           
 TargetThreshold bottomThreshold
           
protected  org.jfree.data.time.Month firstMonth
           
protected  org.jfree.data.time.Month lastMonth
           
protected  java.lang.String lastYear
           
 double LOSE
           
 java.lang.Double mainThreshold
           
static java.lang.String MAXIMUM_BAR_WIDTH
          the maximum bar width, which is specified as a percentage of the available space for all bars For Example setting to 0.05 will ensure that the bars never exceed five per cent of the lenght of the axis
static java.lang.String MONTH_DS
           
static java.lang.String STYLE_VALUE_LABELS
          Style of labels visualization
static java.lang.String TARGETS
           
 java.util.HashMap<java.lang.Double,TargetThreshold> thresholds
           
protected  org.jfree.data.time.TimeSeries timeSeries
           
 boolean useTargets
           
static java.lang.String VALUE_DS
           
 double WIN
           
static java.lang.String WLT_MODE
          Visualization of labels, possible values are from 0.0 to 5.0
static java.lang.String YEAR_DS
           
protected  java.util.TreeSet<java.lang.String> yearsDefined
           
 
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, LEGEND_POSITION, LEGEND_STYLE, legendPosition, linkablebar, linkablepie, locale, markerscatter, meter, multichart, name, NAME, NAME_STYLE, ORIENTATION_STYLE, orientationMultichart, overlaid_barline, overlaid_stacked_barline, 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
TargetCharts()
           
 
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.LegendItemCollection createThresholdLegend(org.jfree.chart.plot.Plot plot)
           
 
Methods inherited from class it.eng.spagobi.engines.chart.bo.ChartImpl
createChart, 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, isLovConfDefined, isSlider, isSliderStartFromEnd, setChangeViewChecked, setChangeViewsParameter, setColor, setConfDataset, setData, setFilter, setHeight, setLegend, setLegendPosition, setLocale, setLocalizedTitle, setLovConfDefined, 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

WIN

public double WIN

LOSE

public double LOSE

useTargets

public boolean useTargets

thresholds

public java.util.HashMap<java.lang.Double,TargetThreshold> thresholds

bottomThreshold

public TargetThreshold bottomThreshold

mainThreshold

public java.lang.Double mainThreshold

timeSeries

protected final org.jfree.data.time.TimeSeries timeSeries

yearsDefined

protected java.util.TreeSet<java.lang.String> yearsDefined

firstMonth

protected org.jfree.data.time.Month firstMonth

lastMonth

protected org.jfree.data.time.Month lastMonth

lastYear

protected java.lang.String lastYear

TARGETS

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

BASELINES

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

MAXIMUM_BAR_WIDTH

public static final java.lang.String MAXIMUM_BAR_WIDTH
the maximum bar width, which is specified as a percentage of the available space for all bars For Example setting to 0.05 will ensure that the bars never exceed five per cent of the lenght of the axis

See Also:
Constant Field Values

WLT_MODE

public static final java.lang.String WLT_MODE
Visualization of labels, possible values are from 0.0 to 5.0

See Also:
Constant Field Values

STYLE_VALUE_LABELS

public static final java.lang.String STYLE_VALUE_LABELS
Style of labels visualization

See Also:
Constant Field Values

YEAR_DS

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

MONTH_DS

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

VALUE_DS

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

TargetCharts

public TargetCharts()
Method Detail

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

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

createThresholdLegend

public org.jfree.chart.LegendItemCollection createThresholdLegend(org.jfree.chart.plot.Plot plot)