org.jfree.chart.axis
public class CompassFormat extends NumberFormat
| Field Summary | |
|---|---|
| static String[] | DIRECTIONS The directions. |
| Constructor Summary | |
|---|---|
| CompassFormat()
Creates a new formatter. | |
| Method Summary | |
|---|---|
| StringBuffer | format(double number, StringBuffer toAppendTo, FieldPosition pos)
Formats a number into the specified string buffer.
|
| StringBuffer | format(long number, StringBuffer toAppendTo, FieldPosition pos)
Formats a number into the specified string buffer.
|
| String | getDirectionCode(double direction)
Returns a string representing the direction.
|
| Number | parse(String source, ParsePosition parsePosition)
This method returns null for all inputs. |
Parameters: number the number to format. toAppendTo the string buffer. pos the field position (ignored here).
Returns: The string buffer.
Parameters: number the number to format. toAppendTo the string buffer. pos the field position (ignored here).
Returns: The string buffer.
Parameters: direction the direction.
Returns: A string.
null for all inputs. This class cannot
be used for parsing.
Parameters: source the source string. parsePosition the parse position.
Returns: null.