Class DecimalAxisFormat

java.lang.Object
io.deephaven.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 Details

    • DecimalAxisFormat

      public DecimalAxisFormat()
  • Method Details

    • setPattern

      public void setPattern(String pattern)
      Description copied from interface: AxisFormat
      Set the pattern used for formatting values.
      Specified by:
      setPattern in interface AxisFormat
      Parameters:
      pattern - string indicating how values should be formatted.
    • getNumberFormatter

      public NumberFormat 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 interface AxisFormat
      Returns:
      formatter