Class AbstractChart<T,O extends Options<?,?>,D extends AbstractData<?,?>>
java.lang.Object
software.xdev.chartjs.model.charts.AbstractChart<T,O,D>
- All Implemented Interfaces:
Chart<T,O, D>
- Direct Known Subclasses:
HomogeneousChart,MixedChart
public abstract class AbstractChart<T,O extends Options<?,?>,D extends AbstractData<?,?>>
extends Object
implements Chart<T,O,D>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractChart(D data) protectedAbstractChart(D data, O options) -
Method Summary
Modifier and TypeMethodDescriptiongetData()protected Tself()setOptions(O options) Convertthisinstance to Json for use with Chart.js library.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.xdev.chartjs.model.charts.Chart
getType, isDrawable, toJson
-
Field Details
-
data
-
options
-
objectWriter
protected final com.fasterxml.jackson.databind.ObjectWriter objectWriter
-
-
Constructor Details
-
AbstractChart
protected AbstractChart() -
AbstractChart
-
AbstractChart
-
-
Method Details
-
getData
-
setData
-
getOptions
-
setOptions
- Specified by:
setOptionsin interfaceChart<T,O extends Options<?, ?>, D extends AbstractData<?, ?>>
-
toJsonNative
Description copied from interface:ChartConvert
thisinstance to Json for use with Chart.js library.- Specified by:
toJsonNativein interfaceChart<T,O extends Options<?, ?>, D extends AbstractData<?, ?>> - Returns:
- json representation of
thisChart
-
self
-