it.eng.spagobi.engines.chart.bo.charttypes.XYCharts
Class SimpleBlockChart

java.lang.Object
  extended by it.eng.spagobi.engines.chart.bo.ChartImpl
      extended by it.eng.spagobi.engines.chart.bo.charttypes.XYCharts.XYCharts
          extended by it.eng.spagobi.engines.chart.bo.charttypes.XYCharts.SimpleBlockChart
All Implemented Interfaces:
IChart

public class SimpleBlockChart
extends XYCharts

Author:
gavardi

Field Summary
static java.lang.String BLOCK_HEIGHT
           
static java.lang.String BLOCK_WIDTH
           
static java.lang.String SCALE_LOWER_BOUND
           
static java.lang.String SCALE_UPPER_BOUND
           
static java.lang.String X_LOWER_BOUND
           
static java.lang.String X_UPPER_BOUND
           
static java.lang.String Y_LOWER_BOUND
           
static java.lang.String Y_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, 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, simpleblockchart, 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
SimpleBlockChart()
           
 
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)
          Creates a chart for the specified dataset.
 
Methods inherited from class it.eng.spagobi.engines.chart.bo.charttypes.XYCharts.XYCharts
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
 

Field Detail

X_LOWER_BOUND

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

X_UPPER_BOUND

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

Y_LOWER_BOUND

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

Y_UPPER_BOUND

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

SCALE_LOWER_BOUND

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

SCALE_UPPER_BOUND

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

BLOCK_HEIGHT

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

BLOCK_WIDTH

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

SimpleBlockChart

public SimpleBlockChart()
Method Detail

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

createChart

public org.jfree.chart.JFreeChart createChart(DatasetMap datasets)
Creates a chart for the specified dataset.

Specified by:
createChart in interface IChart
Overrides:
createChart in class XYCharts
Parameters:
dataset - the dataset.
Returns:
A chart instance.