Package org.pepstock.charba.client.zoom
Class ScaleRange
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.zoom.ScaleRange
-
- Direct Known Subclasses:
ScaleLimit
public class ScaleRange extends NativeObjectContainer
Entity ofZoomPlugin.ID
configuration in order to set minimum and maximum values of the scales for pan or zoom.
The values to set to the properties depends on the type of scales are used.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description ScaleRange()
Creates new scale range element.ScaleRange(double min)
Creates scale range element with the minimum value.ScaleRange(double min, double max)
Creates scale range element with the minimum and maximum values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getMax()
Returns the maximum value of range.double
getMin()
Returns the minimum value of range.void
setMax(double max)
Sets the maximum value of range.void
setMin(double min)
Sets the minimum value of range.-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkAndGetColor, 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, 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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Constructor Detail
-
ScaleRange
public ScaleRange()
Creates new scale range element.
-
ScaleRange
public ScaleRange(double min)
Creates scale range element with the minimum value.- Parameters:
min
- the minimum value of range
-
ScaleRange
public ScaleRange(double min, double max)
Creates scale range element with the minimum and maximum values.- Parameters:
min
- the minimum value of rangemax
- the maximum value of range
-
-
Method Detail
-
setMin
public final void setMin(double min)
Sets the minimum value of range.- Parameters:
min
- the minimum value of range
-
getMin
public final double getMin()
Returns the minimum value of range.- Returns:
- the minimum value of range
-
setMax
public final void setMax(double max)
Sets the maximum value of range.- Parameters:
max
- the maximum value of range
-
getMax
public final double getMax()
Returns the maximum value of range.- Returns:
- the maximum value of range
-
-