Package io.deephaven.plot.axisformatters
Class DecimalAxisFormat
java.lang.Object
io.deephaven.plot.axisformatters.DecimalAxisFormat
- All Implemented Interfaces:
AxisFormat
A formatter for converting decimals into formatted strings.
For details on the supported patterns see the javadoc for
DecimalFormat
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets 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
-