Class NanosAxisFormat.NanosFormat
java.lang.Object
java.text.Format
java.text.NumberFormat
com.illumon.iris.db.plot.axisformatters.NanosAxisFormat.NanosFormat
- All Implemented Interfaces:
Serializable
,Cloneable
- Enclosing class:
- NanosAxisFormat
public class NanosAxisFormat.NanosFormat extends NumberFormat
Formatter for DBDateTime values.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.text.NumberFormat
NumberFormat.Field, NumberFormat.Style
-
Field Summary
-
Method Summary
Modifier and Type Method Description StringBuffer
format(double number, StringBuffer toAppendTo, FieldPosition pos)
StringBuffer
format(long number, StringBuffer toAppendTo, FieldPosition pos)
boolean
isAutoFormat()
Gets whether auto-formatting is on.Number
parse(String source, ParsePosition parsePosition)
boolean
updateFormatter(org.jfree.data.Range range)
Auto-chooses the correct display format based off the range of data if auto-formatting is on.void
updateTimeZone(DBTimeZone tz)
Methods inherited from class java.text.NumberFormat
clone, equals, format, format, format, getAvailableLocales, getCompactNumberInstance, getCompactNumberInstance, getCurrency, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, getRoundingMode, hashCode, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setCurrency, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setParseIntegerOnly, setRoundingMode
-
Method Details
-
isAutoFormat
public boolean isAutoFormat()Gets whether auto-formatting is on.- Returns:
- whether the format is automatically chosen
-
updateFormatter
public boolean updateFormatter(org.jfree.data.Range range)Auto-chooses the correct display format based off the range of data if auto-formatting is on. Smaller range results in finer grained label formats.- Parameters:
range
- data range
-
updateTimeZone
-
format
- Specified by:
format
in classNumberFormat
-
format
- Specified by:
format
in classNumberFormat
-
parse
- Specified by:
parse
in classNumberFormat
-