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)
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.