Interface IsNumericAxis
-
- All Known Subinterfaces:
IsLinearAxis
- All Known Implementing Classes:
CartesianLinearAxis
,CartesianLogarithmicAxis
,ColorAxis
,ColorLogarithmicAxis
,RadialAxis
,SizeAxis
,SizeLogarithmicAxis
public interface IsNumericAxis
Common 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 Axis
getAxisElement()
Returns the axis instance.default double
getMax()
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 double
getMin()
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 aMinMaxCallbacksHandler
which is managing all min and max callbacks options.default double
getSuggestedMax()
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 double
getSuggestedMin()
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 void
setMax(double max)
Sets the user defined maximum number for the scale, overrides maximum value from data.default void
setMax(MinMaxCallback<T> maxCallback)
Sets the callback to set the user defined maximum number for the scale, overrides maximum value from data.default void
setMax(NativeCallback maxCallback)
Sets the callback to set the user defined maximum number for the scale, overrides maximum value from data.default void
setMin(double min)
Sets the user defined minimum number for the scale, overrides minimum value from data.default void
setMin(MinMaxCallback<T> minCallback)
Sets the callback to set the user defined minimum number for the scale, overrides minimum value from data.default void
setMin(NativeCallback minCallback)
Sets the callback to set the user defined minimum number for the scale, overrides minimum value from data.default void
setSuggestedMax(double suggestedMax)
Sets the adjustment used when calculating the maximum data value.default void
setSuggestedMax(MinMaxCallback<T> suggestedMaxCallback)
Sets the callback to set the adjustment used when calculating the maximum data value.default void
setSuggestedMax(NativeCallback suggestedMaxCallback)
Sets the callback to set the adjustment used when calculating the maximum data value.default void
setSuggestedMin(double suggestedMin)
Sets the adjustment used when calculating the minimum data value.default void
setSuggestedMin(MinMaxCallback<T> suggestedMinCallback)
Sets the callback to set the adjustment used when calculating the minimum data value.default void
setSuggestedMin(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 aMinMaxCallbacksHandler
which is managing all min and max callbacks options.- Returns:
- a
MinMaxCallbacksHandler
which 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.
-
-