Package org.pepstock.charba.client.zoom
Class ScaleLimit
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.zoom.ScaleRange
-
- org.pepstock.charba.client.zoom.ScaleLimit
-
public final class ScaleLimit extends ScaleRange
Entity ofZoomPlugin.IDconfiguration in order to set minimum and maximum values of the scales for pan or zoom.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description default doublegetMax()Returns the maximum value of range as double.default doublegetMin()Returns the minimum value of range as double.doublegetMinRange()Returns the minimum allowed range.
This defines the max zoom level.booleanisOriginalMax()Returnstrueto use whatever maximum limit the scale had when the chart was first displayed.booleanisOriginalMin()Returnstrueto use whatever minimum limit the scale had when the chart was first displayed.voidsetMinRange(double min)Sets the minimum allowed range.
This defines the max zoom level.voidsetOriginalMax(boolean enable)Setstrueto use whatever maximum limit the scale had when the chart was first displayed.voidsetOriginalMin(boolean enable)Setstrueto use whatever minimum limit the scale had when the chart was first displayed.-
Methods inherited from class org.pepstock.charba.client.zoom.ScaleRange
getMax, getMin, setMax, setMin
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Method Detail
-
setOriginalMin
public final void setOriginalMin(boolean enable)
Setstrueto use whatever minimum limit the scale had when the chart was first displayed.- Parameters:
enable-trueto use whatever minimum limit the scale had when the chart was first displayed
-
isOriginalMin
public final boolean isOriginalMin()
Returnstrueto use whatever minimum limit the scale had when the chart was first displayed.- Returns:
trueto use whatever minimum limit the scale had when the chart was first displayed
-
setOriginalMax
public final void setOriginalMax(boolean enable)
Setstrueto use whatever maximum limit the scale had when the chart was first displayed.- Parameters:
enable-trueto use whatever maximum limit the scale had when the chart was first displayed
-
isOriginalMax
public final boolean isOriginalMax()
Returnstrueto use whatever maximum limit the scale had when the chart was first displayed.- Returns:
trueto use whatever maximum limit the scale had when the chart was first displayed
-
setMinRange
public void setMinRange(double min)
Sets the minimum allowed range.
This defines the max zoom level.- Parameters:
min- the minimum allowed range.
This defines the max zoom level.
-
getMinRange
public double getMinRange()
Returns the minimum allowed range.
This defines the max zoom level.- Returns:
- the minimum allowed range.
This defines the max zoom level.
-
getMin
public default double getMin()
Returns the minimum value of range as double.- Returns:
- the minimum value of range as double
-
getMax
public default double getMax()
Returns the maximum value of range as double.- Returns:
- the maximum value of range as double
-
-