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, setAttributescheckDefaultValuesArgument, empty, getArrayValue, 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, 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, typepublic 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()
ChartContexttrue if the context is consistent.isConsistent in class ChartContexttrue if the context is consistentprotected boolean checkIfPropertyIsValid(Key property)
ChartContextcheckIfPropertyIsValid in class ChartContextproperty - property to use to store a custom attributetrue if the property can be used to store an attribute.