Class NanosAxisFormat
java.lang.Object
com.illumon.iris.db.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:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
NanosAxisFormat.NanosFormat
Formatter for DBDateTime values. -
Constructor Summary
Constructors Constructor Description NanosAxisFormat()
Creates a new NanosAxisFormat with the default timezone.NanosAxisFormat(DBTimeZone tz)
Creates a new NanosAxisFormat with the specified timezone. -
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
-
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
-