Interface IsLinearTick
-
- All Superinterfaces:
IsNumericTick
- All Known Implementing Classes:
CartesianLinearTick,RadialLinearTick
public interface IsLinearTick extends IsNumericTick
Common methods for linear scale tick is use to chart numerical data.
Can be used for linear cartesian and radial ticks.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AxisgetAxis()Returns the axis instance.default intgetCount()Returns the number of ticks to generate.
If specified, this overrides the automatic generation.default CountCallbackgetCountCallback()Returns the count callback instance.default intgetMaxTicksLimit()Returns the maximum number of ticks and grid to show.default MaxTicksLimitCallbackgetMaxTicksLimitCallback()Returns the maxTicksLimit callback instance.default intgetPrecision()If defined and stepSize is not specified, the step size will be rounded to this many decimal places.default PrecisionCallbackgetPrecisionCallback()Returns the precision callback instance.default doublegetStepSize()Returns the user defined fixed step size for the scale.default StepSizeCallbackgetStepSizeCallback()Returns the stepSize callback instance.org.pepstock.charba.client.configuration.LinearTickOptionsHandlergetTickOptionsHandler()Returns the linear tick options handler instance, for callbacks.default voidsetCount(int count)Sets the number of ticks to generate.
If specified, this overrides the automatic generation.default voidsetCount(CountCallback countCallback)Sets the count callback instance.default voidsetCount(NativeCallback countCallback)Sets the count callback instance.default voidsetMaxTicksLimit(int maxTicksLimit)Sets the maximum number of ticks and grid to show.default voidsetMaxTicksLimit(MaxTicksLimitCallback maxTicksLimitCallback)Sets the maxTicksLimit callback instance.default voidsetMaxTicksLimit(NativeCallback maxTicksLimitCallback)Sets the maxTicksLimit callback instance.default voidsetPrecision(int precision)If defined and stepSize is not specified, the step size will be rounded to this many decimal places.default voidsetPrecision(NativeCallback precisionCallback)Sets the precision callback instance.default voidsetPrecision(PrecisionCallback precisionCallback)Sets the precision callback instance.default voidsetStepSize(double stepSize)Sets the user defined fixed step size for the scale.default voidsetStepSize(NativeCallback stepSizeCallback)Sets the stepSize callback instance.default voidsetStepSize(StepSizeCallback stepSizeCallback)Sets the stepSize callback instance.-
Methods inherited from interface org.pepstock.charba.client.configuration.IsNumericTick
getNumberFormat, getNumberFormatCallback, setNumberFormat, setNumberFormat
-
-
-
-
Method Detail
-
getAxis
Axis getAxis()
Returns the axis instance.- Returns:
- the axis instance
-
getTickOptionsHandler
org.pepstock.charba.client.configuration.LinearTickOptionsHandler getTickOptionsHandler()
Returns the linear tick options handler instance, for callbacks.- Specified by:
getTickOptionsHandlerin interfaceIsNumericTick- Returns:
- the linear tick options handler instance, for callbacks
-
setCount
default void setCount(int count)
Sets the number of ticks to generate.
If specified, this overrides the automatic generation.- Parameters:
count- the number of ticks to generate.
If specified, this overrides the automatic generation
-
getCount
default int getCount()
Returns the number of ticks to generate.
If specified, this overrides the automatic generation.- Returns:
- the number of ticks to generate.
If specified, this overrides the automatic generation
-
setMaxTicksLimit
default void setMaxTicksLimit(int maxTicksLimit)
Sets the maximum number of ticks and grid to show.- Parameters:
maxTicksLimit- maximum number of ticks and grid to show.
-
getMaxTicksLimit
default int getMaxTicksLimit()
Returns the maximum number of ticks and grid to show.- Returns:
- maximum number of ticks and grid to show.
-
setStepSize
default void setStepSize(double stepSize)
Sets the user defined fixed step size for the scale.- Parameters:
stepSize- user defined fixed step size for the scale.
-
getStepSize
default double getStepSize()
Returns the user defined fixed step size for the scale.- Returns:
- user defined fixed step size for the scale.
-
setPrecision
default void setPrecision(int precision)
If defined and stepSize is not specified, the step size will be rounded to this many decimal places.- Parameters:
precision- if defined and stepSize is not specified, the step size will be rounded to this many decimal places.
-
getPrecision
default int getPrecision()
If defined and stepSize is not specified, the step size will be rounded to this many decimal places.- Returns:
- if defined and stepSize is not specified, the step size will be rounded to this many decimal places.
-
getCountCallback
default CountCallback getCountCallback()
Returns the count callback instance.- Returns:
- the count callback instance
-
setCount
default void setCount(CountCallback countCallback)
Sets the count callback instance.- Parameters:
countCallback- the count callback instance
-
setCount
default void setCount(NativeCallback countCallback)
Sets the count callback instance.- Parameters:
countCallback- the count callback instance
-
getMaxTicksLimitCallback
default MaxTicksLimitCallback getMaxTicksLimitCallback()
Returns the maxTicksLimit callback instance.- Returns:
- the maxTicksLimit callback instance
-
setMaxTicksLimit
default void setMaxTicksLimit(MaxTicksLimitCallback maxTicksLimitCallback)
Sets the maxTicksLimit callback instance.- Parameters:
maxTicksLimitCallback- the maxTicksLimit callback instance
-
setMaxTicksLimit
default void setMaxTicksLimit(NativeCallback maxTicksLimitCallback)
Sets the maxTicksLimit callback instance.- Parameters:
maxTicksLimitCallback- the maxTicksLimit callback instance
-
getPrecisionCallback
default PrecisionCallback getPrecisionCallback()
Returns the precision callback instance.- Returns:
- the precision callback instance
-
setPrecision
default void setPrecision(PrecisionCallback precisionCallback)
Sets the precision callback instance.- Parameters:
precisionCallback- the precision callback instance
-
setPrecision
default void setPrecision(NativeCallback precisionCallback)
Sets the precision callback instance.- Parameters:
precisionCallback- the precision callback instance
-
getStepSizeCallback
default StepSizeCallback getStepSizeCallback()
Returns the stepSize callback instance.- Returns:
- the stepSize callback instance
-
setStepSize
default void setStepSize(StepSizeCallback stepSizeCallback)
Sets the stepSize callback instance.- Parameters:
stepSizeCallback- the stepSize callback instance
-
setStepSize
default void setStepSize(NativeCallback stepSizeCallback)
Sets the stepSize callback instance.- Parameters:
stepSizeCallback- the stepSize callback instance
-
-