类 DiscreteSeekBar.NumericTransformer

    • 方法概要

      所有方法 实例方法 抽象方法 具体方法 
      修饰符和类型 方法 说明
      abstract int transform​(int value)
      Return the desired value to be shown to the user.
      java.lang.String transformToString​(int value)
      Return the desired value to be shown to the user.
      boolean useStringTransform()
      Used to indicate which transform will be used.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • NumericTransformer

        public NumericTransformer()
    • 方法详细资料

      • transform

        public 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 DiscreteSeekBar.setIndicatorFormatter(java.lang.String) before displaying it
        参数:
        value - The value to be transformed
        返回:
        The transformed int
      • transformToString

        public java.lang.String transformToString​(int value)
        Return the desired value to be shown to the user. This value will be displayed 'as is' without further formatting.
        参数:
        value - The value to be transformed
        返回:
        A formatted string
      • useStringTransform

        public boolean useStringTransform()
        Used to indicate which transform will be used. If this method returns true, transformToString(int) will be used, otherwise transform(int) will be used