Interface IsNumericAxis
-
- All Known Subinterfaces:
IsLinearAxis
- All Known Implementing Classes:
CartesianLinearAxis,CartesianLogarithmicAxis,ColorAxis,ColorLogarithmicAxis,RadialAxis,SizeAxis,SizeLogarithmicAxis
public interface IsNumericAxisCommon methods for numeric scales (linear/log cartesian and radial).- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AxisgetAxisElement()Returns the axis instance.default doublegetMax()Returns the user defined maximum number for the scale, overrides maximum value from data.default MinMaxCallback<T>getMaxCallback()Returns the callback to set the user defined maximum number for the scale, overrides maximum value from data.default doublegetMin()Returns the user defined minimum number for the scale, overrides minimum value from data.default MinMaxCallback<T>getMinCallback()Returns the callback to set the user defined minimum number for the scale, overrides minimum value from data.org.pepstock.charba.client.configuration.MinMaxCallbacksHandler<T>getMinMaxCallbacksHandler()Returns aMinMaxCallbacksHandlerwhich is managing all min and max callbacks options.default doublegetSuggestedMax()Returns the adjustment used when calculating the maximum data value.default MinMaxCallback<T>getSuggestedMaxCallback()Returns the callback to set the adjustment used when calculating the maximum data value.default doublegetSuggestedMin()Returns the adjustment used when calculating the minimum data value.default MinMaxCallback<T>getSuggestedMinCallback()Returns the callback to set the adjustment used when calculating the minimum data value.default voidsetMax(double max)Sets the user defined maximum number for the scale, overrides maximum value from data.default voidsetMax(MinMaxCallback<T> maxCallback)Sets the callback to set the user defined maximum number for the scale, overrides maximum value from data.default voidsetMax(NativeCallback maxCallback)Sets the callback to set the user defined maximum number for the scale, overrides maximum value from data.default voidsetMin(double min)Sets the user defined minimum number for the scale, overrides minimum value from data.default voidsetMin(MinMaxCallback<T> minCallback)Sets the callback to set the user defined minimum number for the scale, overrides minimum value from data.default voidsetMin(NativeCallback minCallback)Sets the callback to set the user defined minimum number for the scale, overrides minimum value from data.default voidsetSuggestedMax(double suggestedMax)Sets the adjustment used when calculating the maximum data value.default voidsetSuggestedMax(MinMaxCallback<T> suggestedMaxCallback)Sets the callback to set the adjustment used when calculating the maximum data value.default voidsetSuggestedMax(NativeCallback suggestedMaxCallback)Sets the callback to set the adjustment used when calculating the maximum data value.default voidsetSuggestedMin(double suggestedMin)Sets the adjustment used when calculating the minimum data value.default voidsetSuggestedMin(MinMaxCallback<T> suggestedMinCallback)Sets the callback to set the adjustment used when calculating the minimum data value.default voidsetSuggestedMin(NativeCallback suggestedMinCallback)Sets the callback to set the adjustment used when calculating the minimum data value.
-
-
-
Method Detail
-
getAxisElement
Axis getAxisElement()
Returns the axis instance.- Returns:
- the axis
-
setMin
default void setMin(double min)
Sets the user defined minimum number for the scale, overrides minimum value from data.- Parameters:
min- the user defined minimum number for the scale, overrides minimum value from data.
-
getMin
default double getMin()
Returns the user defined minimum number for the scale, overrides minimum value from data.- Returns:
- the user defined minimum number for the scale, overrides minimum value from data.
-
setMax
default void setMax(double max)
Sets the user defined maximum number for the scale, overrides maximum value from data.- Parameters:
max- user defined maximum number for the scale, overrides maximum value from data.
-
getMax
default double getMax()
Returns the user defined maximum number for the scale, overrides maximum value from data.- Returns:
- user defined maximum number for the scale, overrides maximum value from data.
-
setSuggestedMax
default void setSuggestedMax(double suggestedMax)
Sets the adjustment used when calculating the maximum data value.- Parameters:
suggestedMax- adjustment used when calculating the maximum data value.
-
getSuggestedMax
default double getSuggestedMax()
Returns the adjustment used when calculating the maximum data value.- Returns:
- adjustment used when calculating the maximum data value.
-
setSuggestedMin
default void setSuggestedMin(double suggestedMin)
Sets the adjustment used when calculating the minimum data value.- Parameters:
suggestedMin- adjustment used when calculating the minimum data value.
-
getSuggestedMin
default double getSuggestedMin()
Returns the adjustment used when calculating the minimum data value.- Returns:
- adjustment used when calculating the minimum data value.
-
getMinMaxCallbacksHandler
org.pepstock.charba.client.configuration.MinMaxCallbacksHandler<T> getMinMaxCallbacksHandler()
Returns aMinMaxCallbacksHandlerwhich is managing all min and max callbacks options.- Returns:
- a
MinMaxCallbacksHandlerwhich is managing all min and max callbacks options
-
getMinCallback
default MinMaxCallback<T> getMinCallback()
Returns the callback to set the user defined minimum number for the scale, overrides minimum value from data.- Returns:
- the callback to set the user defined minimum number for the scale, overrides minimum value from data.
-
setMin
default void setMin(MinMaxCallback<T> minCallback)
Sets the callback to set the user defined minimum number for the scale, overrides minimum value from data.- Parameters:
minCallback- the callback to set the user defined minimum number for the scale, overrides minimum value from data.
-
setMin
default void setMin(NativeCallback minCallback)
Sets the callback to set the user defined minimum number for the scale, overrides minimum value from data.- Parameters:
minCallback- the callback to set the user defined minimum number for the scale, overrides minimum value from data.
-
setMax
default void setMax(MinMaxCallback<T> maxCallback)
Sets the callback to set the user defined maximum number for the scale, overrides maximum value from data.- Parameters:
maxCallback- the callback to set the user defined maximum number for the scale, overrides maximum value from data.
-
setMax
default void setMax(NativeCallback maxCallback)
Sets the callback to set the user defined maximum number for the scale, overrides maximum value from data.- Parameters:
maxCallback- the callback to set the user defined maximum number for the scale, overrides maximum value from data.
-
getMaxCallback
default MinMaxCallback<T> getMaxCallback()
Returns the callback to set the user defined maximum number for the scale, overrides maximum value from data.- Returns:
- the callback to set the user defined maximum number for the scale, overrides maximum value from data.
-
getSuggestedMinCallback
default MinMaxCallback<T> getSuggestedMinCallback()
Returns the callback to set the adjustment used when calculating the minimum data value.- Returns:
- the callback to set the adjustment used when calculating the minimum data value.
-
setSuggestedMin
default void setSuggestedMin(MinMaxCallback<T> suggestedMinCallback)
Sets the callback to set the adjustment used when calculating the minimum data value.- Parameters:
suggestedMinCallback- the callback to set the adjustment used when calculating the minimum data value.
-
setSuggestedMin
default void setSuggestedMin(NativeCallback suggestedMinCallback)
Sets the callback to set the adjustment used when calculating the minimum data value.- Parameters:
suggestedMinCallback- the callback to set the adjustment used when calculating the minimum data value.
-
getSuggestedMaxCallback
default MinMaxCallback<T> getSuggestedMaxCallback()
Returns the callback to set the adjustment used when calculating the maximum data value.- Returns:
- the callback to set the adjustment used when calculating the maximum data value.
-
setSuggestedMax
default void setSuggestedMax(MinMaxCallback<T> suggestedMaxCallback)
Sets the callback to set the adjustment used when calculating the maximum data value.- Parameters:
suggestedMaxCallback- the callback to set the adjustment used when calculating the maximum data value.
-
setSuggestedMax
default void setSuggestedMax(NativeCallback suggestedMaxCallback)
Sets the callback to set the adjustment used when calculating the maximum data value.- Parameters:
suggestedMaxCallback- the callback to set the adjustment used when calculating the maximum data value.
-
-