public abstract class AbstractDatasetContext extends ChartContext
Modifier | Constructor and Description |
---|---|
protected |
AbstractDatasetContext(NativeObject nativeObject)
Creates the object with native object instance to be wrapped.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkIfPropertyIsValid(Key property)
Checks if the key passed as argument is a key already used for other context properties.
|
int |
getDataIndex()
Returns the index of the current data.
|
DatasetElement |
getDatasetElement()
Returns the
DatasetElement related to the context, if there is, otherwise null . |
int |
getDatasetIndex()
Returns the index of the current data set.
|
DatasetItem |
getDatasetItem()
Returns the
DatasetItem related to the context, if there is, otherwise null . |
TransitionKey |
getMode()
Returns the update mode.
|
boolean |
isActive()
Returns true if element is active (hovered).
|
getAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getChart, getType, hasAttributes, isConsistent, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes
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, type
protected AbstractDatasetContext(NativeObject nativeObject)
nativeObject
- native object instance to be wrappedpublic final boolean isActive()
public final TransitionKey getMode()
public final int getDatasetIndex()
public final int getDataIndex()
public final DatasetItem getDatasetItem()
DatasetItem
related to the context, if there is, otherwise null
.DatasetItem
related to the context, if there is, otherwise null
public final DatasetElement getDatasetElement()
DatasetElement
related to the context, if there is, otherwise null
.DatasetElement
related to the context, if there is, otherwise null
protected boolean checkIfPropertyIsValid(Key property)
ChartContext
checkIfPropertyIsValid
in class ChartContext
property
- property to use to store a custom attributetrue
if the property can be used to store an attribute.