it.eng.spagobi.engines.chart.bo.charttypes.piecharts
Class LinkablePie

java.lang.Object
  extended by it.eng.spagobi.engines.chart.bo.ChartImpl
      extended by it.eng.spagobi.engines.chart.bo.charttypes.piecharts.PieCharts
          extended by it.eng.spagobi.engines.chart.bo.charttypes.piecharts.LinkablePie
All Implemented Interfaces:
ILinkableChart, IChart

public class LinkablePie
extends PieCharts
implements ILinkableChart


Field Summary
static java.lang.String CHANGE_VIEW_3D
           
static java.lang.String CHANGE_VIEW_3D_LABEL
           
static java.lang.String CHANGE_VIEW_3D_LABEL1
           
static java.lang.String CHANGE_VIEW_3D_LABEL2
           
static java.lang.String CHANGE_VIEW_PERCENTAGE
           
static java.lang.String CHANGE_VIEW_PERCENTAGE_LABEL
           
static java.lang.String CHANGE_VIEW_PERCENTAGE_LABEL1
           
static java.lang.String CHANGE_VIEW_PERCENTAGE_LABEL2
           
 
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, 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
LinkablePie()
           
 
Method Summary
 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.
 java.lang.String getCategoryUrlName()
          Gets the category url name.
static java.lang.String getCHANGE_VIEW_3D_LABEL()
          Gets the cHANG e_ vie w_3 d_ label.
static java.lang.String getCHANGE_VIEW_3D_LABEL1()
          Gets the cHANG e_ vie w_3 d_ labe l1.
static java.lang.String getCHANGE_VIEW_3D_LABEL2()
          Gets the cHANG e_ vie w_3 d_ labe l2.
static java.lang.String getCHANGE_VIEW_3D()
          Gets the cHANG e_ vie w_3 d.
static java.lang.String getCHANGE_VIEW_PERCENTAGE_LABEL()
          Gets the cHANG e_ vie w_ percentag e_ label.
static java.lang.String getCHANGE_VIEW_PERCENTAGE_LABEL1()
          Gets the cHANG e_ vie w_ percentag e_ labe l1.
static java.lang.String getCHANGE_VIEW_PERCENTAGE_LABEL2()
          Gets the cHANG e_ vie w_ percentag e_ labe l2.
static java.lang.String getCHANGE_VIEW_PERCENTAGE()
          Gets the cHANG e_ vie w_ percentage.
 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 getDocument_Parameters(java.util.HashMap<java.lang.String,DrillParameter> drillParametersMap)
          Gets document parameters and return a string in the form ¶m1=value1¶m2=value2 ...
 java.lang.String getDrillDocTitle()
          Gets the title of the drill Document
 java.lang.String getDrillLabel()
          Gets the drill label.
 java.util.HashMap<java.lang.String,DrillParameter> getDrillParametersMap()
          Gets the drill parameter.
 java.lang.String getMode()
          Gets the mode.
 java.util.List getPossibleChangePars()
          Gets the possible change pars.
 java.lang.String getRootUrl()
          Gets the root url.
 java.lang.String getSerieUrlname()
          Gets the serie urlname.
 java.lang.String getTarget()
          Gets the target of the drill Document
 boolean isChangeableView()
          Checks if is changeable view.
 boolean isLinkable()
          Checks if is linkable.
 boolean isPercentage()
          Checks if is percentage.
 boolean isPercentageConfigured()
          Checks if is percentage configured.
 boolean isThreeD()
          Checks if is three d.
 boolean isThreedViewConfigured()
          Checks if is threed view configured.
 void setCategoryUrlName(java.lang.String categoryUrlName)
          Sets the category url name.
 void setChangeViewsParameter(java.lang.String changePar, boolean how)
          Sets the change views parameter.
 void setDrillDocTitle(java.lang.String drillDocTitle)
          Sets the title of the drill Document.
 void setDrillLabel(java.lang.String drillLabel)
          Sets the drill label.
 void setDrillParametersMap(java.util.HashMap<java.lang.String,DrillParameter> drillParametersMap)
          Sets the drill parameter.
 void setMode(java.lang.String mode)
          Sets the mode.
 void setPercentage(boolean percentage)
          Sets the percentage.
 void setPercentageConfigured(boolean isPercentageConfigured)
          Sets the percentage configured.
 void setRootUrl(java.lang.String rootUrl)
          Sets the root url.
 void setSerieUrlname(java.lang.String serieUrlname)
          Sets the serie urlname.
 void setTarget(java.lang.String target)
          Sets the target where to open the drill Document.
 void setThreeD(boolean threeD)
          Sets the three d.
 void setThreedViewConfigured(boolean isThreedViewConfigured)
          Sets the threed view configured.
 
Methods inherited from class it.eng.spagobi.engines.chart.bo.charttypes.piecharts.PieCharts
calculateValue, getConfParameters, setConfParameters
 
Methods inherited from class it.eng.spagobi.engines.chart.bo.ChartImpl
createChart, drawLegend, filterDataset, getChangeViewLabel, getColor, getConfDataset, getData, getHeight, getLegendPosition, getLocale, getMultichart, getName, getOrientationMultichart, getParametersObject, getPositionSlider, getProfile, getSeriesLabels, getSubName, getSubtype, getTitleDimension, getType, getWidth, isFilter, isLegend, isLovConfDefined, isSlider, isSliderStartFromEnd, setChangeViewChecked, 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

CHANGE_VIEW_3D_LABEL

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

CHANGE_VIEW_3D_LABEL1

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

CHANGE_VIEW_3D_LABEL2

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

CHANGE_VIEW_3D

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

CHANGE_VIEW_PERCENTAGE_LABEL

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

CHANGE_VIEW_PERCENTAGE_LABEL1

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

CHANGE_VIEW_PERCENTAGE_LABEL2

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

CHANGE_VIEW_PERCENTAGE

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

LinkablePie

public LinkablePie()
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 PieCharts
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 PieCharts
Parameters:
datasets - the dataset
Returns:
the j free chart

isChangeableView

public boolean isChangeableView()
Description copied from interface: IChart
Checks if is changeable view.

Specified by:
isChangeableView in interface IChart
Overrides:
isChangeableView in class ChartImpl
Returns:
true, if is changeable view

setChangeViewsParameter

public void setChangeViewsParameter(java.lang.String changePar,
                                    boolean how)
Description copied from interface: IChart
Sets the change views parameter.

Specified by:
setChangeViewsParameter in interface IChart
Overrides:
setChangeViewsParameter in class ChartImpl
Parameters:
changePar - the change par
how - the how

getChangeViewParameter

public boolean getChangeViewParameter(java.lang.String changePar)
Description copied from interface: IChart
Gets the change view parameter.

Specified by:
getChangeViewParameter in interface IChart
Overrides:
getChangeViewParameter in class ChartImpl
Parameters:
changePar - the change par
Returns:
the change view parameter

getChangeViewParameterLabel

public java.lang.String getChangeViewParameterLabel(java.lang.String changePar,
                                                    int i)
Description copied from interface: IChart
Gets the change view parameter label.

Specified by:
getChangeViewParameterLabel in interface IChart
Overrides:
getChangeViewParameterLabel in class ChartImpl
Parameters:
changePar - the change par
i - the i
Returns:
the change view parameter label

getPossibleChangePars

public java.util.List getPossibleChangePars()
Description copied from interface: IChart
Gets the possible change pars.

Specified by:
getPossibleChangePars in interface IChart
Overrides:
getPossibleChangePars in class ChartImpl
Returns:
the possible change pars

isThreeD

public boolean isThreeD()
Checks if is three d.

Returns:
true, if is three d

setThreeD

public void setThreeD(boolean threeD)
Sets the three d.

Parameters:
threeD - the new three d

isThreedViewConfigured

public boolean isThreedViewConfigured()
Checks if is threed view configured.

Returns:
true, if is threed view configured

setThreedViewConfigured

public void setThreedViewConfigured(boolean isThreedViewConfigured)
Sets the threed view configured.

Parameters:
isThreedViewConfigured - the new threed view configured

isPercentage

public boolean isPercentage()
Checks if is percentage.

Returns:
true, if is percentage

setPercentage

public void setPercentage(boolean percentage)
Sets the percentage.

Parameters:
percentage - the new percentage

isPercentageConfigured

public boolean isPercentageConfigured()
Checks if is percentage configured.

Returns:
true, if is percentage configured

setPercentageConfigured

public void setPercentageConfigured(boolean isPercentageConfigured)
Sets the percentage configured.

Parameters:
isPercentageConfigured - the new percentage configured

getRootUrl

public java.lang.String getRootUrl()
Description copied from interface: ILinkableChart
Gets the root url.

Specified by:
getRootUrl in interface ILinkableChart
Returns:
the root url

setRootUrl

public void setRootUrl(java.lang.String rootUrl)
Description copied from interface: ILinkableChart
Sets the root url.

Specified by:
setRootUrl in interface ILinkableChart
Parameters:
rootUrl - the new root url

getMode

public java.lang.String getMode()
Description copied from interface: ILinkableChart
Gets the mode.

Specified by:
getMode in interface ILinkableChart
Returns:
the mode

setMode

public void setMode(java.lang.String mode)
Description copied from interface: ILinkableChart
Sets the mode.

Specified by:
setMode in interface ILinkableChart
Parameters:
mode - the new mode

getDrillLabel

public java.lang.String getDrillLabel()
Description copied from interface: ILinkableChart
Gets the drill label.

Specified by:
getDrillLabel in interface ILinkableChart
Returns:
the drill label

setDrillLabel

public void setDrillLabel(java.lang.String drillLabel)
Description copied from interface: ILinkableChart
Sets the drill label.

Specified by:
setDrillLabel in interface ILinkableChart
Parameters:
drillLabel - the new drill label

getDrillParametersMap

public java.util.HashMap<java.lang.String,DrillParameter> getDrillParametersMap()
Description copied from interface: ILinkableChart
Gets the drill parameter.

Specified by:
getDrillParametersMap in interface ILinkableChart
Returns:
the drill parameter

setDrillParametersMap

public void setDrillParametersMap(java.util.HashMap<java.lang.String,DrillParameter> drillParametersMap)
Description copied from interface: ILinkableChart
Sets the drill parameter.

Specified by:
setDrillParametersMap in interface ILinkableChart

getCHANGE_VIEW_3D_LABEL

public static java.lang.String getCHANGE_VIEW_3D_LABEL()
Gets the cHANG e_ vie w_3 d_ label.

Returns:
the cHANG e_ vie w_3 d_ label

getCHANGE_VIEW_3D_LABEL1

public static java.lang.String getCHANGE_VIEW_3D_LABEL1()
Gets the cHANG e_ vie w_3 d_ labe l1.

Returns:
the cHANG e_ vie w_3 d_ labe l1

getCHANGE_VIEW_3D_LABEL2

public static java.lang.String getCHANGE_VIEW_3D_LABEL2()
Gets the cHANG e_ vie w_3 d_ labe l2.

Returns:
the cHANG e_ vie w_3 d_ labe l2

getCHANGE_VIEW_3D

public static java.lang.String getCHANGE_VIEW_3D()
Gets the cHANG e_ vie w_3 d.

Returns:
the cHANG e_ vie w_3 d

getCHANGE_VIEW_PERCENTAGE_LABEL

public static java.lang.String getCHANGE_VIEW_PERCENTAGE_LABEL()
Gets the cHANG e_ vie w_ percentag e_ label.

Returns:
the cHANG e_ vie w_ percentag e_ label

getCHANGE_VIEW_PERCENTAGE_LABEL1

public static java.lang.String getCHANGE_VIEW_PERCENTAGE_LABEL1()
Gets the cHANG e_ vie w_ percentag e_ labe l1.

Returns:
the cHANG e_ vie w_ percentag e_ labe l1

getCHANGE_VIEW_PERCENTAGE_LABEL2

public static java.lang.String getCHANGE_VIEW_PERCENTAGE_LABEL2()
Gets the cHANG e_ vie w_ percentag e_ labe l2.

Returns:
the cHANG e_ vie w_ percentag e_ labe l2

getCHANGE_VIEW_PERCENTAGE

public static java.lang.String getCHANGE_VIEW_PERCENTAGE()
Gets the cHANG e_ vie w_ percentage.

Returns:
the cHANG e_ vie w_ percentage

isLinkable

public boolean isLinkable()
Description copied from interface: IChart
Checks if is linkable.

Specified by:
isLinkable in interface IChart
Overrides:
isLinkable in class ChartImpl
Returns:
true, if is linkable

getCategoryUrlName

public java.lang.String getCategoryUrlName()
Description copied from interface: ILinkableChart
Gets the category url name.

Specified by:
getCategoryUrlName in interface ILinkableChart
Returns:
the category url name

setCategoryUrlName

public void setCategoryUrlName(java.lang.String categoryUrlName)
Description copied from interface: ILinkableChart
Sets the category url name.

Specified by:
setCategoryUrlName in interface ILinkableChart
Parameters:
categoryUrlName - the new category url name

getDocument_Parameters

public java.lang.String getDocument_Parameters(java.util.HashMap<java.lang.String,DrillParameter> drillParametersMap)
Description copied from interface: ILinkableChart
Gets document parameters and return a string in the form ¶m1=value1¶m2=value2 ...

Specified by:
getDocument_Parameters in interface ILinkableChart
Parameters:
drillParametersMap - the drill parameters
Returns:
the document_ parameters

getSerieUrlname

public java.lang.String getSerieUrlname()
Description copied from interface: ILinkableChart
Gets the serie urlname.

Specified by:
getSerieUrlname in interface ILinkableChart
Returns:
the serie urlname

setSerieUrlname

public void setSerieUrlname(java.lang.String serieUrlname)
Description copied from interface: ILinkableChart
Sets the serie urlname.

Specified by:
setSerieUrlname in interface ILinkableChart
Parameters:
serieUrlname - the new serie urlname

getDrillDocTitle

public java.lang.String getDrillDocTitle()
Description copied from interface: ILinkableChart
Gets the title of the drill Document

Specified by:
getDrillDocTitle in interface ILinkableChart

setDrillDocTitle

public void setDrillDocTitle(java.lang.String drillDocTitle)
Description copied from interface: ILinkableChart
Sets the title of the drill Document. If not exists, LABEL is taken

Specified by:
setDrillDocTitle in interface ILinkableChart
Parameters:
drillDocTitle - the drill document Title

getTarget

public java.lang.String getTarget()
Description copied from interface: ILinkableChart
Gets the target of the drill Document

Specified by:
getTarget in interface ILinkableChart

setTarget

public void setTarget(java.lang.String target)
Description copied from interface: ILinkableChart
Sets the target where to open the drill Document. If not exists or wrong, default is SELF(not in a new tab)

Specified by:
setTarget in interface ILinkableChart
Parameters:
target - where to open the drill Document: tab=new Tab / self=bread Crumbs