public class LargeValueFormatter extends java.lang.Object implements ValueFormatter, YAxisValueFormatter
| Constructor and Description |
|---|
LargeValueFormatter() |
LargeValueFormatter(java.lang.String appendix)
Creates a formatter that appends a specified text to the result string
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFormattedValue(float value,
Entry entry,
int dataSetIndex,
ViewPortHandler viewPortHandler)
Called when a value (from labels inside the chart) is formatted
before being drawn.
|
java.lang.String |
getFormattedValue(float value,
YAxis yAxis)
Called when a value from the YAxis is formatted
before being drawn.
|
void |
setAppendix(java.lang.String appendix)
Set an appendix text to be added at the end of the formatted value.
|
void |
setSuffix(java.lang.String[] suff)
Set custom suffix to be appended after the values.
|
public LargeValueFormatter()
public LargeValueFormatter(java.lang.String appendix)
appendix - a text that will be appendedpublic java.lang.String getFormattedValue(float value,
Entry entry,
int dataSetIndex,
ViewPortHandler viewPortHandler)
ValueFormattergetFormattedValue in interface ValueFormattervalue - the value to be formattedentry - the entry the value belongs to - in e.g. BarChart, this is of class BarEntrydataSetIndex - the index of the DataSet the entry in focus belongs toviewPortHandler - provides information about the current chart state (scale, translation, ...)public java.lang.String getFormattedValue(float value,
YAxis yAxis)
YAxisValueFormattergetFormattedValue in interface YAxisValueFormattervalue - the YAxis value to be formattedyAxis - the YAxis object the value belongs topublic void setAppendix(java.lang.String appendix)
appendix - public void setSuffix(java.lang.String[] suff)
suff - new suffix