-
- All Implemented Interfaces:
-
com.github.mikephil.charting.formatter.IAxisValueFormatter
public class DefaultAxisValueFormatter implements IAxisValueFormatter
-
-
Field Summary
Fields Modifier and Type Field Description private IntegerdecimalDigits
-
Constructor Summary
Constructors Constructor Description DefaultAxisValueFormatter(Integer digits)
-
Method Summary
Modifier and Type Method Description final IntegergetDecimalDigits()the number of decimal digits this formatter uses final UnitsetDecimalDigits(Integer decimalDigits)StringgetFormattedValue(Float value, AxisBase axis)Called when a value from an axis is to be formatted before being drawn. -
-
Constructor Detail
-
DefaultAxisValueFormatter
DefaultAxisValueFormatter(Integer digits)
-
-
Method Detail
-
getDecimalDigits
final Integer getDecimalDigits()
the number of decimal digits this formatter uses
-
setDecimalDigits
final Unit setDecimalDigits(Integer decimalDigits)
-
getFormattedValue
String getFormattedValue(Float value, AxisBase axis)
Called when a value from an axis is to be formatted before being drawn. For performance reasons, avoid excessive calculations and memory allocations inside this method.
- Parameters:
value- the value to be formattedaxis- the axis the value belongs to
-
-
-
-