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

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

public class SparkLine
extends TargetCharts


Field Summary
static java.lang.String AVG_COLOR
          avreage line color
protected static java.awt.Color colorAverage
           
 
Fields inherited from class it.eng.spagobi.engines.chart.bo.charttypes.targetcharts.TargetCharts
BASELINES, bottomThreshold, firstMonth, lastMonth, lastYear, LOSE, mainThreshold, MAXIMUM_BAR_WIDTH, MONTH_DS, STYLE_VALUE_LABELS, TARGETS, thresholds, timeSeries, useTargets, VALUE_DS, WIN, WLT_MODE, YEAR_DS, 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
SparkLine()
           
 
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 datasets)
          This function creates the chart object.
 java.awt.Color getColorAverage()
           
 java.awt.Paint getLastPointColor()
           
 void setColorAverage(java.awt.Color colorAverage)
           
 
Methods inherited from class it.eng.spagobi.engines.chart.bo.charttypes.targetcharts.TargetCharts
createThresholdLegend
 
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, 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

colorAverage

protected static java.awt.Color colorAverage

AVG_COLOR

public static final java.lang.String AVG_COLOR
avreage line color

See Also:
Constant Field Values
Constructor Detail

SparkLine

public SparkLine()
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 TargetCharts
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 TargetCharts
Parameters:
content - the content

createChart

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

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

getLastPointColor

public java.awt.Paint getLastPointColor()

getColorAverage

public java.awt.Color getColorAverage()

setColorAverage

public void setColorAverage(java.awt.Color colorAverage)