Class Scale
- 
- All Implemented Interfaces:
- HasLabels,- IsDefaultScale
 - Direct Known Subclasses:
- ExtendedScale
 
 public class Scale extends AbstractScale Scales are an integral part of a chart.
 They are used to determine how data maps to a pixel value on the chart.
 - linear
- logarithmic
- category
- time
- time series
- radial linear
 - Author:
- Andrea "Stock" Stocchero
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedScale(AxisType type, IsDefaultScale defaultValues, NativeObject nativeObject)Creates the object only with aixs type, default provider and native object.
 This is used when the default scale is read byDefaults.getScale(AxisType).protectedScale(IsDefaultScale defaultValues, NativeObject nativeObject)Creates the object only with default provider and native object.
 This is used when the scale is read byScales.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AxisKindgetAxis()Which kind of axis this is.
 Possible values are: ''x', 'y' or 'r'.ScaleIdgetId()Returns the id of scale.
 It is usually used to link data sets and scale axes together.
 This is especially needed if multi-axes charts are used.AxisTypegetType()Returns the type of axis.- 
Methods inherited from class org.pepstock.charba.client.options.AbstractScalegetAdapters, getAngleLines, getBackgroundColor, getBackgroundColorAsString, getBounds, getDisplay, getGrace, getGraceAsPercentage, getGrid, getLabelsHandler, getMax, getMaxAsDate, getMaxAsString, getMaxIndex, getMin, getMinAsDate, getMinAsString, getMinIndex, getPointLabels, getPosition, getStack, getStackWeight, getStartAngle, getSuggestedMax, getSuggestedMin, getTicks, getTime, getTitle, getWeight, isAlignToPixels, isAnimate, isBeginAtZero, isOffset, isReverse, isSingleStacked, isStacked, setAlignToPixels, setAnimate, setBackgroundColor, setBackgroundColor, setBeginAtZero, setBounds, setDisplay, setDisplay, setGrace, setGraceAsPercentage, setLabels, setLabels, setMax, setMax, setMax, setMaxIndex, setMin, setMin, setMin, setMinIndex, setOffset, setPosition, setReverse, setSingleStacked, setStack, setStacked, setStackWeight, setStartAngle, setSuggestedMax, setSuggestedMin, setWeight
 - 
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
 
- 
 
- 
- 
- 
Constructor Detail- 
Scaleprotected Scale(IsDefaultScale defaultValues, NativeObject nativeObject) Creates the object only with default provider and native object.
 This is used when the scale is read byScales.- Parameters:
- defaultValues- default provider instance.
- nativeObject- native object to store properties.
 
 - 
Scaleprotected Scale(AxisType type, IsDefaultScale defaultValues, NativeObject nativeObject) Creates the object only with aixs type, default provider and native object.
 This is used when the default scale is read byDefaults.getScale(AxisType).- Parameters:
- type- scale type
- defaultValues- default provider instance.
- nativeObject- native object to store properties.
 
 
- 
 - 
Method Detail- 
getIdpublic final ScaleId getId() Returns the id of scale.
 It is usually used to link data sets and scale axes together.
 This is especially needed if multi-axes charts are used.- Returns:
- The ID is used to link data sets and scale axes together or DefaultScaleId.UNKNOWNif not set
 
 - 
getTypepublic final AxisType getType() Returns the type of axis.- Returns:
- the type of axis.
 
 - 
getAxispublic final AxisKind getAxis() Which kind of axis this is.
 Possible values are: ''x', 'y' or 'r'.- Returns:
- the kind of axis.
 
 
- 
 
-