Spec-Zone .ru
спецификации, руководства, описания, API
|
public static class NumberAxis.DefaultFormatter extends StringConverter<java.lang.Number>
Constructor and Description |
---|
NumberAxis.DefaultFormatter(NumberAxis axis)
Construct a DefaultFormatter for the given NumberAxis
|
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 NumberAxis.DefaultFormatter(NumberAxis axis)
axis
- The axis to format tick marks forpublic NumberAxis.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)
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to