public static class NumberAxis.DefaultFormatter extends StringConverter<Number>
Constructor and Description |
---|
DefaultFormatter(NumberAxis axis)
Construct a DefaultFormatter for the given NumberAxis
|
DefaultFormatter(NumberAxis axis,
String prefix,
String suffix)
Construct a DefaultFormatter for the given NumberAxis with a prefix and/or suffix.
|
Modifier and Type | Method and Description |
---|---|
Number |
fromString(String string)
Converts the string provided into a Number defined by the this converter.
|
String |
toString(Number object)
Converts the object provided into its string form.
|
public DefaultFormatter(NumberAxis axis)
axis
- The axis to format tick marks forpublic DefaultFormatter(NumberAxis axis, String prefix, String suffix)
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 neededpublic String toString(Number object)
toString
in class StringConverter<Number>
StringConverter.toString(T)
public Number fromString(String string)
fromString
in class StringConverter<Number>
StringConverter.toString(T)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.