public class StackedValueFormatter extends java.lang.Object implements IValueFormatter
| Constructor and Description |
|---|
StackedValueFormatter(boolean drawWholeStack,
java.lang.String appendix,
int decimals)
Constructor.
|
| 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.
|
public StackedValueFormatter(boolean drawWholeStack,
java.lang.String appendix,
int decimals)
drawWholeStack - if true, all stack values of the stacked bar entry are drawn, else only topappendix - a string that should be appended behind the valuedecimals - the number of decimal digits to usepublic java.lang.String getFormattedValue(float value,
Entry entry,
int dataSetIndex,
ViewPortHandler viewPortHandler)
IValueFormattergetFormattedValue in interface IValueFormattervalue - 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, ...)