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.
|
String |
getLabel()
Returns the label that is shown on the perimeter of the scale.
|
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, 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 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()
public String getLabel()
RadialPointLabels
callback.RadialPointLabels
callback.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.