public class PercentFormatter extends ValueFormatter
| Modifier and Type | Field and Description |
|---|---|
java.text.DecimalFormat |
mFormat |
| Constructor and Description |
|---|
PercentFormatter() |
PercentFormatter(PieChart pieChart) |
PercentFormatter(PieChart pieChart,
boolean percentSignSeparated) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFormattedValue(float value)
Called when drawing any label, used to change numbers into formatted strings.
|
java.lang.String |
getPieLabel(float value,
PieEntry pieEntry)
Used to draw pie value labels, calls
ValueFormatter.getFormattedValue(float) by default. |
getAxisLabel, getBarLabel, getBarStackedLabel, getBubbleLabel, getCandleLabel, getFormattedValue, getFormattedValue, getPointLabel, getRadarLabelpublic PercentFormatter()
public PercentFormatter(PieChart pieChart)
public PercentFormatter(PieChart pieChart, boolean percentSignSeparated)
public java.lang.String getFormattedValue(float value)
ValueFormattergetFormattedValue in class ValueFormattervalue - float to be formattedpublic java.lang.String getPieLabel(float value,
PieEntry pieEntry)
ValueFormatterValueFormatter.getFormattedValue(float) by default.getPieLabel in class ValueFormattervalue - float to be formatted, may have been converted to percentagepieEntry - slice being labeled, contains original, non-percentage Y value