it.eng.spagobi.engines.chart.utils
Class Template
java.lang.Object
it.eng.spagobi.engines.chart.utils.Template
public class Template
- extends java.lang.Object
- Author:
- Antonella Giachino (antonella.giachino@eng.it)
Utility Class for highcharts integration
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HIGHCHART_TEMPLATE
public static final java.lang.String HIGHCHART_TEMPLATE
- See Also:
- Constant Field Values
HIGH_CHART
public static final java.lang.String HIGH_CHART
- See Also:
- Constant Field Values
HIGH_TITLE
public static final java.lang.String HIGH_TITLE
- See Also:
- Constant Field Values
HIGH_SUBTITLE
public static final java.lang.String HIGH_SUBTITLE
- See Also:
- Constant Field Values
HIGH_TOOLTIP
public static final java.lang.String HIGH_TOOLTIP
- See Also:
- Constant Field Values
HIGH_LEGEND
public static final java.lang.String HIGH_LEGEND
- See Also:
- Constant Field Values
HIGH_PLOTOPTIONS
public static final java.lang.String HIGH_PLOTOPTIONS
- See Also:
- Constant Field Values
HIGH_PLOT_SERIES
public static final java.lang.String HIGH_PLOT_SERIES
- See Also:
- Constant Field Values
HIGH_PLOT_SERIES_NAMES
public static final java.lang.String HIGH_PLOT_SERIES_NAMES
- See Also:
- Constant Field Values
HIGH_PLOT_SERIES_COLORS
public static final java.lang.String HIGH_PLOT_SERIES_COLORS
- See Also:
- Constant Field Values
HIGH_PLOT_SERIES_DASHSTYLES
public static final java.lang.String HIGH_PLOT_SERIES_DASHSTYLES
- See Also:
- Constant Field Values
HIGH_PLOT_SERIES_MARKERS
public static final java.lang.String HIGH_PLOT_SERIES_MARKERS
- See Also:
- Constant Field Values
HIGH_PLOT_SERIES_VISIBLES
public static final java.lang.String HIGH_PLOT_SERIES_VISIBLES
- See Also:
- Constant Field Values
HIGH_PLOT_SERIES_ZINDEX
public static final java.lang.String HIGH_PLOT_SERIES_ZINDEX
- See Also:
- Constant Field Values
HIGH_PLOT_SERIES_STACK
public static final java.lang.String HIGH_PLOT_SERIES_STACK
- See Also:
- Constant Field Values
HIGH_PLOT_SERIES_TYPES
public static final java.lang.String HIGH_PLOT_SERIES_TYPES
- See Also:
- Constant Field Values
HIGH_PLOT_SERIES_XAXIS
public static final java.lang.String HIGH_PLOT_SERIES_XAXIS
- See Also:
- Constant Field Values
HIGH_PLOT_DATALABELS
public static final java.lang.String HIGH_PLOT_DATALABELS
- See Also:
- Constant Field Values
HIGH_XAXIS
public static final java.lang.String HIGH_XAXIS
- See Also:
- Constant Field Values
HIGH_PLOT_XAXIS_TITLESS
public static final java.lang.String HIGH_PLOT_XAXIS_TITLESS
- See Also:
- Constant Field Values
HIGH_PLOT_YAXIS
public static final java.lang.String HIGH_PLOT_YAXIS
- See Also:
- Constant Field Values
HIGH_PLOT_YAXIS_TITLES
public static final java.lang.String HIGH_PLOT_YAXIS_TITLES
- See Also:
- Constant Field Values
HIGH_STYLE
public static final java.lang.String HIGH_STYLE
- See Also:
- Constant Field Values
WIDTH
public static final java.lang.String WIDTH
- See Also:
- Constant Field Values
HEIGHT
public static final java.lang.String HEIGHT
- See Also:
- Constant Field Values
HIGH_NUMCHARTS
public static final java.lang.String HIGH_NUMCHARTS
- See Also:
- Constant Field Values
HIGH_SUBTYPE
public static final java.lang.String HIGH_SUBTYPE
- See Also:
- Constant Field Values
Template
public Template()
getJSONTemplateFromXml
public org.json.JSONObject getJSONTemplateFromXml(it.eng.spago.base.SourceBean xmlTemplate,
org.json.JSONArray parsJSON)
throws org.json.JSONException
- Returns a JSONObject with the input configuration (xml format).
- Parameters:
xmlTemplate
- the template in xml language
-
- Returns:
- JSONObject the same template in json format (because highcharts uses json format)
- Throws:
org.json.JSONException
getDivWidth
public java.lang.String getDivWidth()
- Returns:
- the divWidth
setDivWidth
public void setDivWidth(java.lang.String divWidth)
- Parameters:
divWidth
- the divWidth to set
getDivHeight
public java.lang.String getDivHeight()
- Returns:
- the divHeight
setDivHeight
public void setDivHeight(java.lang.String divHeight)
- Parameters:
divHeight
- the divHeight to set
getTheme
public java.lang.String getTheme()
- Returns:
- the theme
setTheme
public void setTheme(java.lang.String theme)
- Parameters:
theme
- the theme to set
getNumCharts
public java.lang.Integer getNumCharts()
- Returns:
- the numCharts
setNumCharts
public void setNumCharts(java.lang.Integer numCharts)
- Parameters:
numCharts
- the numCharts to set
getSubType
public java.lang.String getSubType()
- Returns:
- the subType
setSubType
public void setSubType(java.lang.String subType)
- Parameters:
subType
- the subType to set
isFirstBlock
public boolean isFirstBlock()
- Returns:
- the firstBlock
setFirstBlock
public void setFirstBlock(boolean firstBlock)
- Parameters:
firstBlock
- the firstBlock to set