Package io.deephaven.plot.axisformatters
Class NanosAxisFormat
java.lang.Object
io.deephaven.plot.axisformatters.NanosAxisFormat
- All Implemented Interfaces:
AxisFormat
,Serializable
A formatter for converting nanoseconds into formatted strings.
For details on the supported patterns see the javadoc for DateTimeFormatter
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Formatter for date time values. -
Constructor Summary
ConstructorDescriptionCreates a new NanosAxisFormat with the default timezone.Creates a new NanosAxisFormat with the specified timezone. -
Method Summary
Modifier and TypeMethodDescriptionGets the formatter for given pattern.void
setPattern
(String pattern) Set the pattern used for formatting values.
-
Constructor Details
-
NanosAxisFormat
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
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
-