Class DecimalAxisFormat
java.lang.Object
com.illumon.iris.db.plot.axisformatters.DecimalAxisFormat
- All Implemented Interfaces:
AxisFormat
public class DecimalAxisFormat extends Object implements AxisFormat
A formatter for converting decimals into formatted strings.
For details on the supported patterns see the javadoc for
DecimalFormat
-
Constructor Summary
Constructors Constructor Description DecimalAxisFormat()
-
Method Summary
Modifier and Type Method Description NumberFormat
getNumberFormatter()
Gets the formatter for given pattern.void
setPattern(String pattern)
Set the pattern used for formatting values.
-
Constructor Details
-
DecimalAxisFormat
public DecimalAxisFormat()
-
-
Method Details
-
setPattern
Description copied from interface:AxisFormat
Set the pattern used for formatting values.- Specified by:
setPattern
in interfaceAxisFormat
- Parameters:
pattern
- string indicating how values should be formatted.
-
getNumberFormatter
Description copied from interface:AxisFormat
Gets the formatter for given pattern.Note that as time values are expressed as numbers, a number formatter is still suitable for dates.
- Specified by:
getNumberFormatter
in interfaceAxisFormat
- Returns:
- formatter
-