Package com.jalios.jcms.chart
Class AbstractChart<T extends AbstractChart<T>>
- java.lang.Object
-
- com.jalios.jcms.chart.AbstractChart<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractChart(java.lang.String chartTitle)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
addPattern()
java.lang.String
getChartTitle()
protected com.fasterxml.jackson.databind.node.ObjectNode
getDefaultconfiguration()
return default options for a chartcom.fasterxml.jackson.databind.node.ObjectNode
getJsonConfiguration()
return common chart configurationprotected abstract T
getThis()
T
hideLegend()
T
hideTitle()
boolean
isAddPattern()
boolean
isHideLegend()
boolean
isHideTitle()
T
setAddPattern(boolean addPattern)
T
setChartTitle(java.lang.String chartTitle)
T
setHideLegend(boolean hideLegend)
T
setHideTitle(boolean hideTitle)
-
-
-
Method Detail
-
isAddPattern
public boolean isAddPattern()
-
setAddPattern
public T setAddPattern(boolean addPattern)
-
addPattern
public T addPattern()
-
getThis
protected abstract T getThis()
-
getChartTitle
public java.lang.String getChartTitle()
-
setChartTitle
public T setChartTitle(java.lang.String chartTitle)
-
isHideLegend
public boolean isHideLegend()
-
setHideLegend
public T setHideLegend(boolean hideLegend)
-
hideLegend
public T hideLegend()
-
isHideTitle
public boolean isHideTitle()
-
setHideTitle
public T setHideTitle(boolean hideTitle)
-
hideTitle
public T hideTitle()
-
getDefaultconfiguration
protected com.fasterxml.jackson.databind.node.ObjectNode getDefaultconfiguration()
return default options for a chart- Returns:
- the default options
Map
-
getJsonConfiguration
public com.fasterxml.jackson.databind.node.ObjectNode getJsonConfiguration() throws com.fasterxml.jackson.core.JsonProcessingException
return common chart configuration- Returns:
- the
ObjectNode
configuration - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-