public final class ScaleContext extends ChartContext
| Constructor and Description |
|---|
ScaleContext(Axis axis,
NativeObject nativeObject)
Creates the object with an envelop of the 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.
|
Axis |
getAxis()
Returns the axis instance where the callback must be invoked.
|
int |
getIndex()
Returns the index of the tick.
|
ScaleItem |
getScale()
Returns the scale instance which contains the element to configure.
|
ScaleTickItem |
getTick()
Returns the tick item instance which contains data to be consumed configuring the element.
|
getAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getChart, getType, hasAttributes, isConsistent, setAttribute, setAttribute, setAttribute, setAttribute, setAttributescheckDefaultValuesArgument, empty, getArrayValue, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, 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, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typepublic ScaleContext(Axis axis, NativeObject nativeObject)
axis - axis instance where the callback must be invokednativeObject - native object instance to be wrapped.public final Axis getAxis()
public int getIndex()
public ScaleItem getScale()
public ScaleTickItem getTick()
protected 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.