public class DefaultValueFormatter extends ValueFormatter
| Modifier and Type | Field and Description |
|---|---|
protected int |
mDecimalDigits |
protected java.text.DecimalFormat |
mFormat
DecimalFormat for formatting
|
| Constructor and Description |
|---|
DefaultValueFormatter(int digits)
Constructor that specifies to how many digits the value should be
formatted.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDecimalDigits()
Returns the number of decimal digits this formatter uses.
|
java.lang.String |
getFormattedValue(float value)
Called when drawing any label, used to change numbers into formatted strings.
|
void |
setup(int digits)
Sets up the formatter with a given number of decimal digits.
|
getAxisLabel, getBarLabel, getBarStackedLabel, getBubbleLabel, getCandleLabel, getFormattedValue, getFormattedValue, getPieLabel, getPointLabel, getRadarLabelprotected java.text.DecimalFormat mFormat
protected int mDecimalDigits
public DefaultValueFormatter(int digits)
digits - public void setup(int digits)
digits - public java.lang.String getFormattedValue(float value)
ValueFormattergetFormattedValue in class ValueFormattervalue - float to be formattedpublic int getDecimalDigits()