|
||||||||||
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 | |
---|---|
static java.lang.String |
BARCHART
|
static java.lang.String |
blockchart
|
static java.lang.String |
BLOCKCHART
|
static java.lang.String |
BOXCHART
|
static java.lang.String |
bullet
|
static java.lang.String |
CLUSTERCHART
|
protected java.awt.Color |
color
|
static java.lang.String |
COLOR_STYLE
|
static java.lang.String |
COLORS_BACKGROUND
title dimension |
static java.lang.String |
combined_category_bar
|
static java.lang.String |
CONF
TAG CONF |
static java.lang.String |
CONF_DATASET
dataset for configuration |
protected java.lang.String |
confDataset
|
protected java.lang.String |
data
|
protected StyleLabel |
defaultLabelsStyle
|
static java.lang.String |
DIAL_CHART
|
static java.lang.String |
DIMENSION_HEIGHT
|
static java.lang.String |
DIMENSION_WIDTH
dimensions of chart |
protected boolean |
filter
|
static java.lang.String |
FONT_STYLE
|
protected int |
height
|
protected boolean |
isLovConfDefined
|
protected boolean |
legend
|
static java.lang.String |
LEGEND
if true draw legend |
static java.lang.String |
LEGEND_POSITION
legend position; bottom, top, left, right |
static java.lang.String |
LEGEND_STYLE
legend style; font, sizem color |
protected java.lang.String |
legendPosition
|
static java.lang.String |
linkablebar
|
static java.lang.String |
linkablepie
|
protected java.util.Locale |
locale
|
static java.lang.String |
markerscatter
|
static java.lang.String |
meter
|
protected boolean |
multichart
|
protected java.lang.String |
name
|
static java.lang.String |
NAME
Nameof the chart., can be parametrized |
static java.lang.String |
NAME_STYLE
parameters for style tags |
static java.lang.String |
ORIENTATION_STYLE
|
protected java.lang.String |
orientationMultichart
|
static java.lang.String |
overlaid_barline
|
static java.lang.String |
overlaid_stacked_barline
|
protected java.util.Map |
parametersObject
|
static java.lang.String |
PIECHART
|
static java.lang.String |
POSITION_SLIDER
top or bottom, where to put slider |
protected java.lang.String |
positionSlider
|
protected it.eng.spago.security.IEngUserProfile |
profile
|
static java.lang.String |
SCATTERCHART
|
static java.lang.String |
SERIES_LABELS
Labels for series, should be put outside CONF |
protected java.util.HashMap |
seriesLabelsMap
|
static java.lang.String |
simplebar
|
static java.lang.String |
simpleblockchart
|
static java.lang.String |
simplebox
|
static java.lang.String |
simplecluster
|
static java.lang.String |
simpledial
|
static java.lang.String |
simplepie
|
static java.lang.String |
simplescatter
|
static java.lang.String |
simpletimeblock
|
static java.lang.String |
SIZE_STYLE
|
protected boolean |
slider
|
static java.lang.String |
SLIDER_START_FROM_END
if true the slider starts from last n categories |
protected boolean |
sliderStartFromEnd
|
static java.lang.String |
sparkline
|
static java.lang.String |
speedometer
|
static java.lang.String |
speedometerMultiValue
|
static java.lang.String |
stacked_bar
|
static java.lang.String |
stacked_bar_group
|
static java.lang.String |
STYLE_LABELS_DEFAULT
tag for style default labels |
static java.lang.String |
STYLE_SUBTITLE
tag for style subTitle |
static java.lang.String |
STYLE_TITLE
tag for style title |
protected StyleLabel |
styleLegend
|
protected StyleLabel |
styleSubTitle
|
protected StyleLabel |
styleTitle
|
protected java.lang.String |
subName
|
protected java.lang.String |
subtype
|
static java.lang.String |
TARGETCHART
|
static java.lang.String |
thermomether
|
static java.lang.String |
TITLE_DIMENSION
title dimension |
protected int |
titleDimension
|
protected java.lang.String |
type
|
static java.lang.String |
VIEW_FILTER
if true view filter |
static java.lang.String |
VIEW_SLIDER
if true view slider |
protected int |
width
|
static java.lang.String |
winlose
|
static java.lang.String |
XYCHART
|
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()
|
java.util.Locale |
getLocale()
|
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()
|
boolean |
isSliderStartFromEnd()
|
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 |
setLocale(java.util.Locale locale)
|
void |
setLocalizedTitle()
|
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)
|
void |
setSliderStartFromEnd(boolean sliderStartFromEnd)
|
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 boolean sliderStartFromEnd
protected java.lang.String positionSlider
protected StyleLabel styleTitle
protected StyleLabel styleSubTitle
protected StyleLabel defaultLabelsStyle
protected StyleLabel styleLegend
protected java.util.HashMap seriesLabelsMap
protected boolean multichart
protected java.lang.String orientationMultichart
protected java.util.Locale locale
public static final java.lang.String DIAL_CHART
public static final java.lang.String speedometer
public static final java.lang.String speedometerMultiValue
public static final java.lang.String simpledial
public static final java.lang.String thermomether
public static final java.lang.String meter
public static final java.lang.String bullet
public static final java.lang.String PIECHART
public static final java.lang.String simplepie
public static final java.lang.String linkablepie
public static final java.lang.String BARCHART
public static final java.lang.String simplebar
public static final java.lang.String linkablebar
public static final java.lang.String overlaid_barline
public static final java.lang.String stacked_bar
public static final java.lang.String stacked_bar_group
public static final java.lang.String overlaid_stacked_barline
public static final java.lang.String combined_category_bar
public static final java.lang.String BOXCHART
public static final java.lang.String simplebox
public static final java.lang.String CLUSTERCHART
public static final java.lang.String simplecluster
public static final java.lang.String XYCHART
public static final java.lang.String blockchart
public static final java.lang.String simpleblockchart
public static final java.lang.String SCATTERCHART
public static final java.lang.String simplescatter
public static final java.lang.String markerscatter
public static final java.lang.String TARGETCHART
public static final java.lang.String sparkline
public static final java.lang.String winlose
public static final java.lang.String BLOCKCHART
public static final java.lang.String simpletimeblock
public static final java.lang.String NAME
public static final java.lang.String STYLE_TITLE
public static final java.lang.String STYLE_SUBTITLE
public static final java.lang.String STYLE_LABELS_DEFAULT
public static final java.lang.String NAME_STYLE
public static final java.lang.String FONT_STYLE
public static final java.lang.String SIZE_STYLE
public static final java.lang.String COLOR_STYLE
public static final java.lang.String ORIENTATION_STYLE
public static final java.lang.String TITLE_DIMENSION
public static final java.lang.String COLORS_BACKGROUND
public static final java.lang.String DIMENSION_WIDTH
public static final java.lang.String DIMENSION_HEIGHT
public static final java.lang.String CONF_DATASET
public static final java.lang.String CONF
public static final java.lang.String LEGEND
public static final java.lang.String LEGEND_POSITION
public static final java.lang.String LEGEND_STYLE
public static final java.lang.String VIEW_FILTER
public static final java.lang.String VIEW_SLIDER
public static final java.lang.String SLIDER_START_FROM_END
public static final java.lang.String POSITION_SLIDER
public static final java.lang.String SERIES_LABELS
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()
setLocalizedTitle
in interface IChart
public boolean isSliderStartFromEnd()
public void setSliderStartFromEnd(boolean sliderStartFromEnd)
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |