-
public abstract class DiscreteSeekBar.NumericTransformerInterface 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 inttransform(int value)Return the desired value to be shown to the user. StringtransformToString(int value)Return the desired value to be shown to the user.This value will be displayed 'as is' without further formatting. booleanuseStringTransform()Used to indicate which transform will be used. -
-
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
-
useStringTransform
boolean useStringTransform()
Used to indicate which transform will be used. If this method returns true, transformToString will be used, otherwise transform will be used
-
-
-
-