类 DiscreteSeekBar.NumericTransformer
- java.lang.Object
-
- com.lyy.keepassa.widget.discreteSeekBar.DiscreteSeekBar.NumericTransformer
-
- 封闭类:
- DiscreteSeekBar
public abstract static class DiscreteSeekBar.NumericTransformer extends java.lang.ObjectInterface to transform the current internal value of this DiscreteSeekBar to anther one for the visualization. This will be used on the floating bubble to display a different value if needed. Using this in conjunction withDiscreteSeekBar.setIndicatorFormatter(String)you will be able to manipulate the value seen by the user
-
-
构造器概要
构造器 构造器 说明 NumericTransformer()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract inttransform(int value)Return the desired value to be shown to the user.java.lang.StringtransformToString(int value)Return the desired value to be shown to the user.booleanuseStringTransform()Used to indicate which transform will be used.
-
-
-
方法详细资料
-
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 byDiscreteSeekBar.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, otherwisetransform(int)will be used
-
-