Package com.jalios.jcms.chart
Class AbstractChart<T extends AbstractChart<T>>
java.lang.Object
com.jalios.jcms.chart.AbstractChart<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.node.ObjectNodereturn default options for a chartgetId()com.fasterxml.jackson.databind.node.ObjectNodereturn common chart configurationprotected abstract TgetThis()booleanbooleanbooleanbooleansetAddPattern(boolean addPattern) setChartTitle(String chartTitle) setHideLegend(boolean hideLegend) setHideTitle(boolean hideTitle) voidvoidsetUseExternalLegend(boolean useExternalLegend)
-
Field Details
-
MAPPER
protected static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
-
-
Constructor Details
-
AbstractChart
-
-
Method Details
-
isAddPattern
public boolean isAddPattern() -
setAddPattern
-
addPattern
-
getThis
-
getChartTitle
-
setChartTitle
-
isHideLegend
public boolean isHideLegend() -
setHideLegend
-
hideLegend
-
isHideTitle
public boolean isHideTitle() -
setHideTitle
-
hideTitle
-
isUseExternalLegend
public boolean isUseExternalLegend() -
setUseExternalLegend
public void setUseExternalLegend(boolean useExternalLegend) -
useExternalLegend
-
useInternalLegend
-
getId
-
setId
-
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- theJsonProcessingException
-
serializeJsonConfiguration
public String serializeJsonConfiguration() throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-