LabelFormatter

public interface LabelFormatter

Known direct subclasses
BasicLabelFormatter

A simple implementation of the LabelFormatter interface, that limits the number displayed inside a discrete slider's bubble to three digits, and a single-character suffix that denotes magnitude (e.g.: 1.5K, 2.2M, 1.3B, 2T).


Interface definition for applying custom formatting to the text displayed inside the bubble shown when a slider is used in discrete mode.

Summary

Constants

default static final int
default static final int
default static final int
default static final int

Public methods

abstract String
getFormattedValue(float value)

Constants

LABEL_FLOATING

default static final int LABEL_FLOATING = 0

LABEL_GONE

default static final int LABEL_GONE = 2

LABEL_VISIBLE

default static final int LABEL_VISIBLE = 3

LABEL_WITHIN_BOUNDS

default static final int LABEL_WITHIN_BOUNDS = 1

Public methods

getFormattedValue

abstract String getFormattedValue(float value)