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 StringBufferformat(double number, StringBuffer toAppendTo, FieldPosition pos)StringBufferformat(long number, StringBuffer toAppendTo, FieldPosition pos)booleanisAutoFormat()Gets whether auto-formatting is on.Numberparse(String source, ParsePosition parsePosition)booleanupdateFormatter(org.jfree.data.Range range)Auto-chooses the correct display format based off the range of data if auto-formatting is on.voidupdateTimeZone(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:
formatin classNumberFormat
-
format
- Specified by:
formatin classNumberFormat
-
parse
- Specified by:
parsein classNumberFormat
-