public abstract class AbstractDataPoint extends NativeObjectContainer
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDataPoint(NativeObject nativeObject)
Creates the object with a native object passed as argument.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAttribute(Key key)
Returns a custom field value from data point.
|
Date |
getAttributeAsDate(Key key)
Returns a custom field value from data point.
|
<T extends NativeObjectContainer> |
getAttributeAsObject(Key key,
NativeObjectContainerFactory<T> factory)
Returns a custom field value from data point.
|
String |
getAttributeAsString(Key key)
Returns a custom field value from data point.
|
void |
setAttribute(Key key,
Date value)
Sets a custom field to data point.
|
void |
setAttribute(Key key,
double value)
Sets a custom field to data point.
|
void |
setAttribute(Key key,
String value)
Sets a custom field to data point.
|
<T extends NativeObjectContainer> |
setAttribute(Key key,
T value)
Sets a custom field to data point.
|
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typeprotected AbstractDataPoint(NativeObject nativeObject)
nativeObject - native object which maps a data pointpublic final void setAttribute(Key key, double value)
key - key of java script object to set.value - value to set.public final double getAttribute(Key key)
key - key of java script object to get.public final void setAttribute(Key key, String value)
key - key of java script object to set.value - value to set.public final String getAttributeAsString(Key key)
key - key of java script object to get.public final void setAttribute(Key key, Date value)
key - key of java script object to set.value - value to set.public final Date getAttributeAsDate(Key key)
key - key of java script object to get.public final <T extends NativeObjectContainer> void setAttribute(Key key, T value)
T - type of user objectkey - key of java script object to set.value - value to set.public final <T extends NativeObjectContainer> T getAttributeAsObject(Key key, NativeObjectContainerFactory<T> factory)
T - type of user objectkey - key of java script object to get.factory - instance of factory to create the native object