Class NanosAxisFormat

java.lang.Object
io.deephaven.plot.axisformatters.NanosAxisFormat
All Implemented Interfaces:
AxisFormat, Serializable

public class NanosAxisFormat extends Object implements AxisFormat, Serializable
A formatter for converting nanoseconds into formatted strings.

For details on the supported patterns see the javadoc for DateTimeFormatter

See Also:
  • Constructor Details

    • NanosAxisFormat

      public NanosAxisFormat(ZoneId tz)
      Creates a new NanosAxisFormat with the specified timezone.
      Parameters:
      tz - timezone
    • NanosAxisFormat

      public NanosAxisFormat()
      Creates a new NanosAxisFormat with the default timezone.
  • 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