Interface IsLinearAxis
-
- All Superinterfaces:
IsNumericAxis
- All Known Implementing Classes:
CartesianLinearAxis,ColorAxis,RadialAxis,SizeAxis
public interface IsLinearAxis extends 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 org.pepstock.charba.client.configuration.BegiAtZeroCallbackHandlergetBegiAtZeroCallbackHandler()Returns aBegiAtZeroCallbackHandlerwhich is managing beginAtZero callback options.default BeginAtZeroCallbackgetBeginAtZeroCallback()Returns the callback to set if true, scale will include 0 if it is not already included.default MinMaxCallback<T>getMaxCallback()Returns the callback to set the user defined maximum number for the scale, overrides maximum 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 MinMaxCallback<T>getSuggestedMaxCallback()Returns the callback to set the adjustment used when calculating the maximum data value.default MinMaxCallback<T>getSuggestedMinCallback()Returns the callback to set the adjustment used when calculating the minimum data value.default booleanisBeginAtZero()If true, scale will include 0 if it is not already included.default voidsetBeginAtZero(boolean beginAtZero)If true, scale will include 0 if it is not already included.default voidsetBeginAtZero(BeginAtZeroCallback beginAtZeroCallback)Sets the callback to set if true, scale will include 0 if it is not already included.default voidsetBeginAtZero(NativeCallback beginAtZeroCallback)Sets the callback to set if true, scale will include 0 if it is not already included.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(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(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(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.-
Methods inherited from interface org.pepstock.charba.client.configuration.IsNumericAxis
getAxisElement, getMax, getMin, getSuggestedMax, getSuggestedMin, setMax, setMin, setSuggestedMax, setSuggestedMin
-
-
-
-
Method Detail
-
setBeginAtZero
default void setBeginAtZero(boolean beginAtZero)
If true, scale will include 0 if it is not already included.- Parameters:
beginAtZero- if true, scale will include 0 if it is not already included.
-
isBeginAtZero
default boolean isBeginAtZero()
If true, scale will include 0 if it is not already included.- Returns:
- if true, scale will include 0 if it is not already included.
-
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.
-
getBegiAtZeroCallbackHandler
org.pepstock.charba.client.configuration.BegiAtZeroCallbackHandler getBegiAtZeroCallbackHandler()
Returns aBegiAtZeroCallbackHandlerwhich is managing beginAtZero callback options.- Returns:
- a
BegiAtZeroCallbackHandlerwhich is managing beginAtZero callback options
-
getBeginAtZeroCallback
default BeginAtZeroCallback getBeginAtZeroCallback()
Returns the callback to set if true, scale will include 0 if it is not already included.- Returns:
- the callback to set if true, scale will include 0 if it is not already included.
-
setBeginAtZero
default void setBeginAtZero(BeginAtZeroCallback beginAtZeroCallback)
Sets the callback to set if true, scale will include 0 if it is not already included.- Parameters:
beginAtZeroCallback- the callback to set if true, scale will include 0 if it is not already included.
-
setBeginAtZero
default void setBeginAtZero(NativeCallback beginAtZeroCallback)
Sets the callback to set if true, scale will include 0 if it is not already included.- Parameters:
beginAtZeroCallback- the callback to set if true, scale will include 0 if it is not already included.
-
-