public static class NumberAxis.DefaultFormatter extends StringConverter<java.lang.Number>
| Constructor and Description |
|---|
DefaultFormatter(NumberAxis axis)
Construct a DefaultFormatter for the given NumberAxis
|
DefaultFormatter(NumberAxis axis,
java.lang.String prefix,
java.lang.String suffix)
Construct a DefaultFormatter for the given NumberAxis with a prefix and/or suffix.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Number |
fromString(java.lang.String string)
Converts the string provided into a Number defined by the this converter.
|
java.lang.String |
toString(java.lang.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, java.lang.String prefix, java.lang.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 java.lang.String toString(java.lang.Number object)
toString in class StringConverter<java.lang.Number>StringConverter.toString(T)public java.lang.Number fromString(java.lang.String string)
fromString in class StringConverter<java.lang.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, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.