Package pamViewFX.fxNodes.pamAxis
Class PamDateAxis.DefaultFormatter
java.lang.Object
javafx.util.StringConverter<Long>
pamViewFX.fxNodes.pamAxis.PamDateAxis.DefaultFormatter
- Enclosing class:
 PamDateAxis
Default number formatter for DateAxis, 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 Summary
ConstructorsConstructorDescriptionDefaultFormatter(PamDateAxis axis) Construct a DefaultFormatter for the given DateAxisDefaultFormatter(PamDateAxis axis, String prefix, String suffix) Construct a DefaultFormatter for the given DateAxis with a prefix and/or suffix. - 
Method Summary
Modifier and TypeMethodDescriptionfromString(String string) Converts the string provided into a Number defined by the this converter.javafx.util.converter.TimeStringConvertervoidsetFormatter(javafx.util.converter.TimeStringConverter formatter) Converts the object provided into its string form. 
- 
Constructor Details
- 
DefaultFormatter
Construct a DefaultFormatter for the given DateAxis- Parameters:
 axis- The axis to format tick marks for
 - 
DefaultFormatter
Construct a DefaultFormatter for the given DateAxis with a prefix and/or suffix.- Parameters:
 axis- The axis to format tick marks forprefix- The prefix to append to the start of formatted number, can be null if not neededsuffix- The suffix to append to the end of formatted number, can be null if not needed
 
 - 
 - 
Method Details
- 
getFormatter
public javafx.util.converter.TimeStringConverter getFormatter() - 
setFormatter
public void setFormatter(javafx.util.converter.TimeStringConverter formatter)  - 
toString
Converts the object provided into its string form. Format of the returned string is defined by this converter.- Specified by:
 toStringin classjavafx.util.StringConverter<Long>- Returns:
 - a string representation of the object passed in.
 - See Also:
 
 - 
fromString
Converts 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 classjavafx.util.StringConverter<Long>- Returns:
 - a Number representation of the string passed in.
 - See Also:
 
 
 -