it.eng.spagobi.engines.chart.bo.charttypes.blockcharts
Class TimeBlockChart

java.lang.Object
  extended by it.eng.spagobi.engines.chart.bo.ChartImpl
      extended by it.eng.spagobi.engines.chart.bo.charttypes.blockcharts.BlockCharts
          extended by it.eng.spagobi.engines.chart.bo.charttypes.blockcharts.TimeBlockChart
All Implemented Interfaces:
IChart

public class TimeBlockChart
extends BlockCharts


Field Summary
 
Fields inherited from class it.eng.spagobi.engines.chart.bo.charttypes.blockcharts.BlockCharts
ANNOTATION, BEGIN_ACTIVITY_DATE, BEGIN_ACTIVITY_TIME, DURATION, PATTERN, styleAnnotation
 
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_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
TimeBlockChart()
           
 
Method Summary
static java.util.Date addDay(java.util.Date date)
           
 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.
static long daysBetween(java.util.Date d1, java.util.Date d2)
           
 
Methods inherited from class it.eng.spagobi.engines.chart.bo.charttypes.blockcharts.BlockCharts
getConfParameters, setConfParameters
 
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
 

Constructor Detail

TimeBlockChart

public TimeBlockChart()
Method Detail

daysBetween

public static long daysBetween(java.util.Date d1,
                               java.util.Date d2)

addDay

public static java.util.Date addDay(java.util.Date date)

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 BlockCharts
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