|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.text.Format
java.text.NumberFormat
org.jfree.chart.axis.CompassFormat
public class CompassFormat
A formatter that displays numbers as directions.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.text.NumberFormat |
|---|
NumberFormat.Field |
| Field Summary | |
|---|---|
static String[] |
DIRECTIONS
The directions. |
| Fields inherited from class java.text.NumberFormat |
|---|
FRACTION_FIELD, INTEGER_FIELD |
| 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. |
| Methods inherited from class java.text.Format |
|---|
format, formatToCharacterIterator, parseObject |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String[] DIRECTIONS
| Constructor Detail |
|---|
public CompassFormat()
| Method Detail |
|---|
public String getDirectionCode(double direction)
direction - the direction.
public StringBuffer format(double number,
StringBuffer toAppendTo,
FieldPosition pos)
format in class NumberFormatnumber - the number to format.toAppendTo - the string buffer.pos - the field position (ignored here).
public StringBuffer format(long number,
StringBuffer toAppendTo,
FieldPosition pos)
format in class NumberFormatnumber - the number to format.toAppendTo - the string buffer.pos - the field position (ignored here).
public Number parse(String source,
ParsePosition parsePosition)
null for all inputs. This class cannot
be used for parsing.
parse in class NumberFormatsource - the source string.parsePosition - the parse position.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||