public class DefaultAxisValueFormatter extends java.lang.Object implements IAxisValueFormatter
| 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,
AxisBase axis)
Called when a value from an axis is to be formatted
before being drawn.
|
protected java.text.DecimalFormat mFormat
protected int digits
public DefaultAxisValueFormatter(int digits)
digits - public java.lang.String getFormattedValue(float value,
AxisBase axis)
IAxisValueFormattergetFormattedValue in interface IAxisValueFormattervalue - the value to be formattedaxis - the axis the value belongs topublic int getDecimalDigits()