public abstract class ValueFormatter extends java.lang.Object implements IAxisValueFormatter, IValueFormatter
| Constructor and Description |
|---|
ValueFormatter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAxisLabel(float value,
AxisBase axis)
Used to draw axis labels, calls
getFormattedValue(float) by default. |
java.lang.String |
getBarLabel(BarEntry barEntry)
Used to draw bar labels, calls
getFormattedValue(float) by default. |
java.lang.String |
getBarStackedLabel(float value,
BarEntry stackedEntry)
Used to draw stacked bar labels, calls
getFormattedValue(float) by default. |
java.lang.String |
getBubbleLabel(BubbleEntry bubbleEntry)
Used to draw bubble size labels, calls
getFormattedValue(float) by default. |
java.lang.String |
getCandleLabel(CandleEntry candleEntry)
Used to draw high labels, calls
getFormattedValue(float) by default. |
java.lang.String |
getFormattedValue(float value)
Called when drawing any label, used to change numbers into formatted strings.
|
java.lang.String |
getFormattedValue(float value,
AxisBase axis)
Deprecated.
|
java.lang.String |
getFormattedValue(float value,
Entry entry,
int dataSetIndex,
ViewPortHandler viewPortHandler)
Deprecated.
|
java.lang.String |
getPieLabel(float value,
PieEntry pieEntry)
Used to draw pie value labels, calls
getFormattedValue(float) by default. |
java.lang.String |
getPointLabel(Entry entry)
Used to draw line and scatter labels, calls
getFormattedValue(float) by default. |
java.lang.String |
getRadarLabel(RadarEntry radarEntry)
Used to draw radar value labels, calls
getFormattedValue(float) by default. |
@Deprecated
public java.lang.String getFormattedValue(float value,
AxisBase axis)
getFormattedValue in interface IAxisValueFormattervalue - the value to be formattedaxis - the axis the value belongs to@Deprecated
public java.lang.String getFormattedValue(float value,
Entry entry,
int dataSetIndex,
ViewPortHandler viewPortHandler)
getFormattedValue 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, ...)public java.lang.String getFormattedValue(float value)
value - float to be formattedpublic java.lang.String getAxisLabel(float value,
AxisBase axis)
getFormattedValue(float) by default.value - float to be formattedaxis - axis being labeledpublic java.lang.String getBarLabel(BarEntry barEntry)
getFormattedValue(float) by default.barEntry - bar being labeledpublic java.lang.String getBarStackedLabel(float value,
BarEntry stackedEntry)
getFormattedValue(float) by default.value - current value to be formattedstackedEntry - stacked entry being labeled, contains all Y valuespublic java.lang.String getPointLabel(Entry entry)
getFormattedValue(float) by default.entry - point being labeled, contains X valuepublic java.lang.String getPieLabel(float value,
PieEntry pieEntry)
getFormattedValue(float) by default.value - float to be formatted, may have been converted to percentagepieEntry - slice being labeled, contains original, non-percentage Y valuepublic java.lang.String getRadarLabel(RadarEntry radarEntry)
getFormattedValue(float) by default.radarEntry - entry being labeledpublic java.lang.String getBubbleLabel(BubbleEntry bubbleEntry)
getFormattedValue(float) by default.bubbleEntry - bubble being labeled, also contains X and Y valuespublic java.lang.String getCandleLabel(CandleEntry candleEntry)
getFormattedValue(float) by default.candleEntry - candlestick being labeled