- Enclosing class:
- NumberAxis
public static class NumberAxis.DefaultFormatter extends StringConverter<Number>
Default number formatter for NumberAxis, this stays in sync with auto-ranging and formats values appropriately.
 You can wrap this formatter to add prefixes or suffixes;
- Since:
- JavaFX 2.0
- 
Constructor SummaryConstructors Constructor Description DefaultFormatter(NumberAxis axis)Construct a DefaultFormatter for the given NumberAxisDefaultFormatter(NumberAxis axis, String prefix, String suffix)Construct a DefaultFormatter for the given NumberAxis with a prefix and/or suffix.
- 
Method Summary
- 
Constructor Details- 
DefaultFormatterConstruct a DefaultFormatter for the given NumberAxis- Parameters:
- axis- The axis to format tick marks for
 
- 
DefaultFormatterConstruct a DefaultFormatter for the given NumberAxis with a prefix and/or suffix.- Parameters:
- axis- The axis to format tick marks for
- prefix- The prefix to append to the start of formatted number, can be null if not needed
- suffix- The suffix to append to the end of formatted number, can be null if not needed
 
 
- 
- 
Method Details- 
toStringConverts the object provided into its string form. Format of the returned string is defined by this converter.- Specified by:
- toStringin class- StringConverter<Number>
- Parameters:
- object- the object of type- Tto convert
- Returns:
- a string representation of the object passed in.
- See Also:
- StringConverter.toString(T)
 
- 
fromStringConverts the string provided into a Number defined by the this converter. Format of the string and type of the resulting object is defined by this converter.- Specified by:
- fromStringin class- StringConverter<Number>
- Parameters:
- string- the- Stringto convert
- Returns:
- a Number representation of the string passed in.
- See Also:
- StringConverter.toString(T)
 
 
-