public final class ScaleLimit extends ScaleRange
ZoomPlugin.ID configuration in order to set minimum and maximum values of the scales for pan or zoom.| Modifier and Type | Method and 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()
Returns
true to use whatever maximum limit the scale had when the chart was first displayed. |
boolean |
isOriginalMin()
Returns
true 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)
Sets
true to use whatever maximum limit the scale had when the chart was first displayed. |
void |
setOriginalMin(boolean enable)
Sets
true to use whatever minimum limit the scale had when the chart was first displayed. |
getMax, getMin, setMax, setMincheckDefaultValuesArgument, 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 final void setOriginalMin(boolean enable)
true to use whatever minimum limit the scale had when the chart was first displayed.enable - true to use whatever minimum limit the scale had when the chart was first displayedpublic final boolean isOriginalMin()
true to use whatever minimum limit the scale had when the chart was first displayed.true to use whatever minimum limit the scale had when the chart was first displayedpublic final void setOriginalMax(boolean enable)
true to use whatever maximum limit the scale had when the chart was first displayed.enable - true to use whatever maximum limit the scale had when the chart was first displayedpublic final boolean isOriginalMax()
true to use whatever maximum limit the scale had when the chart was first displayed.true to use whatever maximum limit the scale had when the chart was first displayedpublic void setMinRange(double min)
min - the minimum allowed range.public double getMinRange()
public double getMin()
public double getMax()