it.eng.spagobi.engines.chart.bo
Interface IChart

All Known Implementing Classes:
BarCharts, BlockChart, BoxCharts, BulletGraph, ChartImpl, ClusterCharts, CumulativeCurveChart, DialCharts, LinkableBar, LinkablePie, MarkerScatter, Meter, OverlaidBarLine, OverlaidStackedBarLine, PieCharts, SBISpeedometer, ScatterCharts, SimpleBar, SimpleBox, SimpleCluster, SimpleDial, SimplePie, SimpleScatter, SpeedometerMultiValue, StackedBar, StackedBarGroup, Thermometer, XYCharts

public interface IChart


Method Summary
 DatasetMap calculateValue()
          Calculate value.
 void configureChart(it.eng.spago.base.SourceBean content)
          Configure chart.
 org.jfree.chart.JFreeChart createChart(DatasetMap dataset)
          Creates the chart.
 org.jfree.data.general.Dataset filterDataset(org.jfree.data.general.Dataset dataset, java.util.HashMap categories, int catSelected, int numberCatsVisualization)
          Filter dataset.
 boolean getChangeViewParameter(java.lang.String changePar)
          Gets the change view parameter.
 java.lang.String getChangeViewParameterLabel(java.lang.String changePar, int i)
          Gets the change view parameter label.
 java.lang.String getData()
          Gets the data.
 int getHeight()
          Gets the height.
 java.lang.String getName()
          Gets the name.
 java.util.Map getParametersObject()
          Gets the parameters object.
 java.util.List getPossibleChangePars()
          Gets the possible change pars.
 int getTitleDimension()
           
 int getWidth()
          Gets the width.
 boolean isChangeableView()
          Checks if is changeable view.
 boolean isLegend()
          Checks if is legend.
 boolean isLinkable()
          Checks if is linkable.
 void setChangeViewChecked(boolean b)
          Sets the change view checked.
 void setChangeViewsParameter(java.lang.String changePar, boolean how)
          Sets the change views parameter.
 void setData(java.lang.String data)
          Sets the data.
 void setHeight(int height)
          Sets the height.
 void setLegend(boolean legend)
          Sets the legend.
 void setLocalizedTitle(java.util.Locale locale)
           
 void setName(java.lang.String name)
          Sets the name.
 void setParametersObject(java.util.Map paramsObject)
          Sets the parameters object.
 void setTitleDimension(int d)
           
 void setWidth(int width)
          Sets the width.
 

Method Detail

createChart

org.jfree.chart.JFreeChart createChart(DatasetMap dataset)
Creates the chart.

Parameters:
chartTitle - the chart title
dataset - the dataset
Returns:
the j free chart

configureChart

void configureChart(it.eng.spago.base.SourceBean content)
Configure chart.

Parameters:
content - the content

calculateValue

DatasetMap calculateValue()
                          throws java.lang.Exception
Calculate value.

Returns:
A map of datasets (usually only one)
Throws:
java.lang.Exception - the exception

filterDataset

org.jfree.data.general.Dataset filterDataset(org.jfree.data.general.Dataset dataset,
                                             java.util.HashMap categories,
                                             int catSelected,
                                             int numberCatsVisualization)
Filter dataset.

Parameters:
dataset - the dataset
categories - the categories
catSelected - the cat selected
numberCatsVisualization - the number cats visualization
Returns:
the dataset

getName

java.lang.String getName()
Gets the name.

Returns:
the name

setName

void setName(java.lang.String name)
Sets the name.

Parameters:
name - the new name

getWidth

int getWidth()
Gets the width.

Returns:
the width

setWidth

void setWidth(int width)
Sets the width.

Parameters:
width - the new width

getHeight

int getHeight()
Gets the height.

Returns:
the height

setHeight

void setHeight(int height)
Sets the height.

Parameters:
height - the new height

getData

java.lang.String getData()
Gets the data.

Returns:
the data

setData

void setData(java.lang.String data)
Sets the data.

Parameters:
data - the new data

isChangeableView

boolean isChangeableView()
Checks if is changeable view.

Returns:
true, if is changeable view

setChangeViewChecked

void setChangeViewChecked(boolean b)
Sets the change view checked.

Parameters:
b - the new change view checked

isLinkable

boolean isLinkable()
Checks if is linkable.

Returns:
true, if is linkable

getPossibleChangePars

java.util.List getPossibleChangePars()
Gets the possible change pars.

Returns:
the possible change pars

setChangeViewsParameter

void setChangeViewsParameter(java.lang.String changePar,
                             boolean how)
Sets the change views parameter.

Parameters:
changePar - the change par
how - the how

getChangeViewParameter

boolean getChangeViewParameter(java.lang.String changePar)
Gets the change view parameter.

Parameters:
changePar - the change par
Returns:
the change view parameter

getChangeViewParameterLabel

java.lang.String getChangeViewParameterLabel(java.lang.String changePar,
                                             int i)
Gets the change view parameter label.

Parameters:
changePar - the change par
i - the i
Returns:
the change view parameter label

isLegend

boolean isLegend()
Checks if is legend.

Returns:
true, if is legend

setLegend

void setLegend(boolean legend)
Sets the legend.

Parameters:
legend - the new legend

getParametersObject

java.util.Map getParametersObject()
Gets the parameters object.

Returns:
the parameters object

setParametersObject

void setParametersObject(java.util.Map paramsObject)
Sets the parameters object.

Parameters:
paramsObject - the new parameters object

setTitleDimension

void setTitleDimension(int d)

getTitleDimension

int getTitleDimension()

setLocalizedTitle

void setLocalizedTitle(java.util.Locale locale)