public class DefaultAxisValueFormatter extends ValueFormatter
| Modifier and Type | Field and Description |
|---|---|
protected int |
digits
the number of decimal digits this formatter uses
|
protected java.text.DecimalFormat |
mFormat
decimalformat for formatting
|
| Constructor and Description |
|---|
DefaultAxisValueFormatter(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 or -1, if unspecified.
|
java.lang.String |
getFormattedValue(float value)
Called when drawing any label, used to change numbers into formatted strings.
|
getAxisLabel, getBarLabel, getBarStackedLabel, getBubbleLabel, getCandleLabel, getFormattedValue, getFormattedValue, getPieLabel, getPointLabel, getRadarLabelprotected java.text.DecimalFormat mFormat
protected int digits
public DefaultAxisValueFormatter(int digits)
digits - public java.lang.String getFormattedValue(float value)
ValueFormattergetFormattedValue in class ValueFormattervalue - float to be formattedpublic int getDecimalDigits()