|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.engines.chart.bo.ChartImpl
public class ChartImpl
Field Summary | |
---|---|
protected java.awt.Color |
color
|
protected java.lang.String |
confDataset
|
protected java.lang.String |
data
|
protected StyleLabel |
defaultLabelsStyle
|
protected boolean |
filter
|
protected int |
height
|
protected boolean |
isLovConfDefined
|
protected boolean |
legend
|
protected java.lang.String |
legendPosition
|
protected boolean |
multichart
|
protected java.lang.String |
name
|
protected java.lang.String |
orientationMultichart
|
protected java.util.Map |
parametersObject
|
protected java.lang.String |
positionSlider
|
protected it.eng.spago.security.IEngUserProfile |
profile
|
protected java.util.HashMap |
seriesLabelsMap
|
protected boolean |
slider
|
protected StyleLabel |
styleSubTitle
|
protected StyleLabel |
styleTitle
|
protected java.lang.String |
subName
|
protected java.lang.String |
subtype
|
protected int |
titleDimension
|
protected java.lang.String |
type
|
protected int |
width
|
Constructor Summary | |
---|---|
ChartImpl()
|
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 dataset)
This function creates the chart object. |
static ChartImpl |
createChart(java.lang.String type,
java.lang.String subtype)
This function creates the object of the right subtype as specified by type and subtype parameters found in template. |
void |
drawLegend(org.jfree.chart.JFreeChart chart)
|
org.jfree.data.general.Dataset |
filterDataset(org.jfree.data.general.Dataset dataset,
java.util.HashMap categories,
int catSelected,
int numberCatsVisualization)
Filter dataset. |
java.lang.String |
getChangeViewLabel(java.lang.String theme,
int i)
Gets the change view label. |
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.awt.Color |
getColor()
Gets the color. |
java.lang.String |
getConfDataset()
Gets the conf dataset. |
java.lang.String |
getData()
Gets the data. |
int |
getHeight()
Gets the height. |
java.lang.String |
getLegendPosition()
|
boolean |
getMultichart()
|
java.lang.String |
getName()
Gets the name. |
java.lang.String |
getOrientationMultichart()
|
java.util.Map |
getParametersObject()
Gets the parameters object. |
java.lang.String |
getPositionSlider()
|
java.util.List |
getPossibleChangePars()
Gets the possible change pars. |
it.eng.spago.security.IEngUserProfile |
getProfile()
Gets the profile. |
java.util.HashMap |
getSeriesLabels()
|
java.lang.String |
getSubName()
|
java.lang.String |
getSubtype()
Gets the subtype. |
int |
getTitleDimension()
|
java.lang.String |
getType()
Gets the type. |
int |
getWidth()
Gets the width. |
boolean |
isChangeableView()
Checks if is changeable view. |
boolean |
isFilter()
|
boolean |
isLegend()
Checks if is legend. |
boolean |
isLinkable()
Checks if is linkable. |
boolean |
isLovConfDefined()
Checks if is lov conf defined. |
boolean |
isSlider()
|
void |
setChangeViewChecked(boolean b)
Sets the change view checked. |
void |
setChangeViewsParameter(java.lang.String changePar,
boolean how)
Sets the change views parameter. |
void |
setColor(java.awt.Color color)
Sets the color. |
void |
setConfDataset(java.lang.String confDataset)
Sets the conf dataset. |
void |
setData(java.lang.String _data)
Sets the data. |
void |
setFilter(boolean filter)
|
void |
setHeight(int _height)
Sets the height. |
void |
setLegend(boolean legend)
Sets the legend. |
void |
setLegendPosition(java.lang.String legendPosition)
|
void |
setLocalizedTitle(java.util.Locale locale)
|
void |
setLovConfDefined(boolean isLovConfDefined)
Sets the lov conf defined. |
void |
setMultichart(boolean multichart)
|
void |
setName(java.lang.String _name)
Sets the name. |
void |
setOrientationMultichart(java.lang.String orientationMultichart)
|
void |
setParametersObject(java.util.Map parametersObject)
Sets the parameters object. |
void |
setPositionSlider(java.lang.String positionSlider)
|
void |
setProfile(it.eng.spago.security.IEngUserProfile profile)
Sets the profile. |
void |
setSeriesLabels(java.util.HashMap seriesLabels)
|
void |
setSlider(boolean slider)
|
org.jfree.chart.title.TextTitle |
setStyleTitle(java.lang.String title,
StyleLabel titleLabel)
|
void |
setSubName(java.lang.String _name)
|
void |
setSubTitleParameter(java.util.List atts)
|
void |
setSubTitleParameter(java.lang.String attValue)
|
void |
setSubtype(java.lang.String subtype)
Sets the subtype. |
void |
setTitleDimension(int titleDimension)
|
void |
setTitleParameter(java.util.List atts)
|
void |
setTitleParameter(java.lang.String attValue)
|
void |
setType(java.lang.String type)
Sets the type. |
void |
setWidth(int _width)
Sets the width. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int titleDimension
protected java.lang.String name
protected java.lang.String subName
protected int width
protected int height
protected java.lang.String data
protected java.lang.String confDataset
protected boolean isLovConfDefined
protected it.eng.spago.security.IEngUserProfile profile
protected java.lang.String type
protected java.lang.String subtype
protected java.awt.Color color
protected boolean legend
protected java.lang.String legendPosition
protected java.util.Map parametersObject
protected boolean filter
protected boolean slider
protected java.lang.String positionSlider
protected StyleLabel styleTitle
protected StyleLabel styleSubTitle
protected StyleLabel defaultLabelsStyle
protected java.util.HashMap seriesLabelsMap
protected boolean multichart
protected java.lang.String orientationMultichart
Constructor Detail |
---|
public ChartImpl()
Method Detail |
---|
public void configureChart(it.eng.spago.base.SourceBean content)
configureChart
in interface IChart
content
- the contentpublic org.jfree.chart.JFreeChart createChart(DatasetMap dataset)
createChart
in interface IChart
chartTitle
- the chart titledataset
- the dataset
public static ChartImpl createChart(java.lang.String type, java.lang.String subtype)
type
- the typesubtype
- the subtype
public java.lang.String getData()
IChart
getData
in interface IChart
public int getHeight()
IChart
getHeight
in interface IChart
public java.lang.String getName()
IChart
getName
in interface IChart
public int getWidth()
IChart
getWidth
in interface IChart
public void setData(java.lang.String _data)
IChart
setData
in interface IChart
_data
- the new datapublic void setHeight(int _height)
IChart
setHeight
in interface IChart
_height
- the new heightpublic void setName(java.lang.String _name)
IChart
setName
in interface IChart
_name
- the new namepublic void setSubName(java.lang.String _name)
public java.lang.String getSubName()
public void setWidth(int _width)
IChart
setWidth
in interface IChart
_width
- the new widthpublic DatasetMap calculateValue() throws java.lang.Exception
IChart
calculateValue
in interface IChart
java.lang.Exception
- the exceptionpublic java.lang.String getConfDataset()
public void setConfDataset(java.lang.String confDataset)
confDataset
- the new conf datasetpublic it.eng.spago.security.IEngUserProfile getProfile()
public void setProfile(it.eng.spago.security.IEngUserProfile profile)
profile
- the new profilepublic boolean isLovConfDefined()
public void setLovConfDefined(boolean isLovConfDefined)
isLovConfDefined
- the new lov conf definedpublic boolean isLinkable()
IChart
isLinkable
in interface IChart
public java.lang.String getType()
public void setType(java.lang.String type)
type
- the new typepublic java.lang.String getSubtype()
public void setSubtype(java.lang.String subtype)
subtype
- the new subtypepublic boolean isChangeableView()
IChart
isChangeableView
in interface IChart
public java.lang.String getChangeViewLabel(java.lang.String theme, int i)
theme
- the themei
- the i
public void setChangeViewChecked(boolean b)
IChart
setChangeViewChecked
in interface IChart
b
- the new change view checkedpublic java.util.List getPossibleChangePars()
IChart
getPossibleChangePars
in interface IChart
public void setChangeViewsParameter(java.lang.String changePar, boolean how)
IChart
setChangeViewsParameter
in interface IChart
changePar
- the change parhow
- the howpublic boolean getChangeViewParameter(java.lang.String changePar)
IChart
getChangeViewParameter
in interface IChart
changePar
- the change par
public java.lang.String getChangeViewParameterLabel(java.lang.String changePar, int i)
IChart
getChangeViewParameterLabel
in interface IChart
changePar
- the change pari
- the i
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- the new colorpublic org.jfree.data.general.Dataset filterDataset(org.jfree.data.general.Dataset dataset, java.util.HashMap categories, int catSelected, int numberCatsVisualization)
IChart
filterDataset
in interface IChart
dataset
- the datasetcategories
- the categoriescatSelected
- the cat selectednumberCatsVisualization
- the number cats visualization
public boolean isLegend()
IChart
isLegend
in interface IChart
public void setLegend(boolean legend)
IChart
setLegend
in interface IChart
legend
- the new legendpublic java.util.Map getParametersObject()
IChart
getParametersObject
in interface IChart
public void setParametersObject(java.util.Map parametersObject)
IChart
setParametersObject
in interface IChart
parametersObject
- the new parameters objectpublic boolean isFilter()
public void setFilter(boolean filter)
public boolean isSlider()
public java.lang.String getPositionSlider()
public void setPositionSlider(java.lang.String positionSlider)
positionSlider
- the positionSlider to setpublic void setSlider(boolean slider)
public void setTitleParameter(java.util.List atts)
public void setSubTitleParameter(java.util.List atts)
public void setSubTitleParameter(java.lang.String attValue)
public void setTitleParameter(java.lang.String attValue)
public org.jfree.chart.title.TextTitle setStyleTitle(java.lang.String title, StyleLabel titleLabel)
public int getTitleDimension()
getTitleDimension
in interface IChart
public void setTitleDimension(int titleDimension)
setTitleDimension
in interface IChart
public java.util.HashMap getSeriesLabels()
public void setSeriesLabels(java.util.HashMap seriesLabels)
public java.lang.String getLegendPosition()
public void setLegendPosition(java.lang.String legendPosition)
public boolean getMultichart()
public void setMultichart(boolean multichart)
multichart
- the multichart to setpublic java.lang.String getOrientationMultichart()
public void setOrientationMultichart(java.lang.String orientationMultichart)
orientationMultichart
- the orientationMultichart to setpublic void drawLegend(org.jfree.chart.JFreeChart chart)
public void setLocalizedTitle(java.util.Locale locale)
setLocalizedTitle
in interface IChart
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |