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 protectedAbstractChart(java.lang.String chartTitle) 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description TaddPattern()java.lang.StringgetChartTitle()protected com.fasterxml.jackson.databind.node.ObjectNodegetDefaultconfiguration()return default options for a chartcom.fasterxml.jackson.databind.node.ObjectNodegetJsonConfiguration()return common chart configurationprotected abstract TgetThis()ThideLegend()ThideTitle()booleanisAddPattern()booleanisHideLegend()booleanisHideTitle()TsetAddPattern(boolean addPattern)TsetChartTitle(java.lang.String chartTitle)TsetHideLegend(boolean hideLegend)TsetHideTitle(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.JsonProcessingExceptionreturn common chart configuration- Returns:
 - the 
ObjectNodeconfiguration - Throws:
 com.fasterxml.jackson.core.JsonProcessingException
 
 - 
 
 -