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.ID
configuration 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 double
getMax()
Returns the maximum value of range as double.default double
getMin()
Returns the minimum value of range as double.double
getMinRange()
Returns the minimum allowed range.
This defines the max zoom level.boolean
isOriginalMax()
Returnstrue
to use whatever maximum limit the scale had when the chart was first displayed.boolean
isOriginalMin()
Returnstrue
to use whatever minimum limit the scale had when the chart was first displayed.void
setMinRange(double min)
Sets the minimum allowed range.
This defines the max zoom level.void
setOriginalMax(boolean enable)
Setstrue
to use whatever maximum limit the scale had when the chart was first displayed.void
setOriginalMin(boolean enable)
Setstrue
to 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)
Setstrue
to use whatever minimum limit the scale had when the chart was first displayed.- Parameters:
enable
-true
to use whatever minimum limit the scale had when the chart was first displayed
-
isOriginalMin
public final boolean isOriginalMin()
Returnstrue
to use whatever minimum limit the scale had when the chart was first displayed.- Returns:
true
to use whatever minimum limit the scale had when the chart was first displayed
-
setOriginalMax
public final void setOriginalMax(boolean enable)
Setstrue
to use whatever maximum limit the scale had when the chart was first displayed.- Parameters:
enable
-true
to use whatever maximum limit the scale had when the chart was first displayed
-
isOriginalMax
public final boolean isOriginalMax()
Returnstrue
to use whatever maximum limit the scale had when the chart was first displayed.- Returns:
true
to 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
-
-