Class Scales
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.commons.AbstractNode
- 
- org.pepstock.charba.client.options.AbstractModel<Options,IsDefaultScales>
- 
- org.pepstock.charba.client.options.Scales
 
 
 
 
- 
- All Implemented Interfaces:
- IsDefaultScales
 - Direct Known Subclasses:
- ExtendedScales
 
 public class Scales extends AbstractModel<Options,IsDefaultScales> implements IsDefaultScales The configuration element which contains all axes definitions.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Scale>getAxes()Returns a list of X axes.ScalegetAxis(String scaleId)Returns the scale with the id passed as argument ornullif not exist.ScalegetAxis(ScaleId scaleId)Returns the scale with the id passed as argument ornullif not exist.IsDefaultScalegetAxis(ScaleId scaleId, AxisKind kind)Returns the default configuration for x axis.booleanhasAxis(String scaleId)Returnstrueif the scale with the id passed as argument exists.booleanhasAxis(ScaleId scaleId)Returnstrueif the scale with the id passed as argument exists.- 
Methods inherited from class org.pepstock.charba.client.options.AbstractModelgetDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
 - 
Methods inherited from class org.pepstock.charba.client.commons.AbstractNodecheckAndAddToParent, 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, setValueOrArrayAndAddToParent
 - 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckDefaultValuesArgument, 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
 
- 
 
- 
- 
- 
Method Detail- 
hasAxispublic boolean hasAxis(String scaleId) Returnstrueif the scale with the id passed as argument exists.- Parameters:
- scaleId- scale id to check
- Returns:
- trueif the scale with the id passed as argument exists
 
 - 
hasAxispublic boolean hasAxis(ScaleId scaleId) Returnstrueif the scale with the id passed as argument exists.- Parameters:
- scaleId- scale id to check
- Returns:
- trueif the scale with the id passed as argument exists
 
 - 
getAxispublic Scale getAxis(String scaleId) Returns the scale with the id passed as argument ornullif not exist.- Parameters:
- scaleId- scale id to check
- Returns:
- the scale with the id passed as argument or nullif not exist
 
 - 
getAxispublic Scale getAxis(ScaleId scaleId) Returns the scale with the id passed as argument ornullif not exist.- Parameters:
- scaleId- scale id to check
- Returns:
- the scale with the id passed as argument or nullif not exist
 
 - 
getAxispublic IsDefaultScale getAxis(ScaleId scaleId, AxisKind kind) Description copied from interface:IsDefaultScalesReturns the default configuration for x axis.- Specified by:
- getAxisin interface- IsDefaultScales
- Parameters:
- scaleId- the scale id to use to get the default
- kind- axis kind to use if the scale id is not recognizable
- Returns:
- the default configuration for x axis.
 
 
- 
 
-