Package 

Class DiscreteSeekBar.NumericTransformer


  • 
    public abstract class DiscreteSeekBar.NumericTransformer
    
                        

    Interface to transform the current internal value of this DiscreteSeekBar to anther one for thevisualization.This will be used on the floating bubble to display a different value if needed.Using this in conjunction with setIndicatorFormatter you will be able tomanipulate thevalue seen by the user

    • Method Summary

      Modifier and Type Method Description
      abstract int transform(int value) Return the desired value to be shown to the user.
      String transformToString(int value) Return the desired value to be shown to the user.This value will be displayed 'as is' without further formatting.
      boolean useStringTransform() Used to indicate which transform will be used.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • transform

         abstract int transform(int value)

        Return the desired value to be shown to the user.This value will be formatted using the format specified by setIndicatorFormatter before displaying it

        Parameters:
        value - The value to be transformed
      • transformToString

         String transformToString(int value)

        Return the desired value to be shown to the user.This value will be displayed 'as is' without further formatting.

        Parameters:
        value - The value to be transformed