public class Scales extends AbstractModel<Options,IsDefaultScales> implements IsDefaultScales
| Modifier and Type | Method and Description |
|---|---|
List<Scale> |
getAxes()
Returns a list of X axes.
|
Scale |
getAxis(ScaleId scaleId)
Returns the scale with the id passed as argument or
null if not exist. |
IsDefaultScale |
getAxis(ScaleId scaleId,
AxisKind kind)
Returns the default configuration for x axis.
|
Scale |
getAxis(String scaleId)
Returns the scale with the id passed as argument or
null if not exist. |
boolean |
hasAxis(ScaleId scaleId)
Returns
true if the scale with the id passed as argument exists. |
boolean |
hasAxis(String scaleId)
Returns
true if the scale with the id passed as argument exists. |
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModelcheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, 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, typepublic boolean hasAxis(String scaleId)
true if the scale with the id passed as argument exists.scaleId - scale id to checktrue if the scale with the id passed as argument existspublic boolean hasAxis(ScaleId scaleId)
true if the scale with the id passed as argument exists.scaleId - scale id to checktrue if the scale with the id passed as argument existspublic Scale getAxis(String scaleId)
null if not exist.scaleId - scale id to checknull if not existpublic Scale getAxis(ScaleId scaleId)
null if not exist.scaleId - scale id to checknull if not existpublic IsDefaultScale getAxis(ScaleId scaleId, AxisKind kind)
IsDefaultScalesgetAxis in interface IsDefaultScalesscaleId - the scale id to use to get the defaultkind - axis kind to use if the scale id is not recognizable