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 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:
        getTickOptionsHandler in interface IsNumericTick
        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