public final class SegmentContext extends ChartContext
Segment
which contains the line charts references.Constructor and Description |
---|
SegmentContext(NativeObject nativeObject)
Creates the object with native object instance to be wrapped, called by
configuration package. |
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 |
getDatasetIndex()
Returns the index of the current data set.
|
int |
getEndDataIndex()
Returns the index of the current data of ending point of segment.
|
DatasetElement |
getEndPoint()
Returns the
DatasetElement related to the data as ending point of segment. |
int |
getStartDataIndex()
Returns the index of the current data of starting point of segment.
|
DatasetElement |
getStartPoint()
Returns the
DatasetElement related to the data as starting point of segment. |
protected boolean |
isConsistent()
Returns
true if the context is consistent.Custom context (the plugin ones) should extend it and check if the context is consistent before invoking the callback. |
getAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getChart, getType, hasAttributes, 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
public SegmentContext(NativeObject nativeObject)
configuration
package.nativeObject
- native object instance to be wrapped.public DatasetElement getStartPoint()
DatasetElement
related to the data as starting point of segment.DatasetElement
related to the data as starting point of segmentpublic DatasetElement getEndPoint()
DatasetElement
related to the data as ending point of segment.DatasetElement
related to the data as ending point of segmentpublic int getDatasetIndex()
public int getStartDataIndex()
public int getEndDataIndex()
protected boolean isConsistent()
ChartContext
true
if the context is consistent.isConsistent
in class ChartContext
true
if the context is consistentprotected 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.