|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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 |
---|
java.text.NumberFormat.Field |
Field Summary | |
---|---|
static java.lang.String[] |
DIRECTIONS
The directions. |
Fields inherited from class java.text.NumberFormat |
---|
FRACTION_FIELD, INTEGER_FIELD |
Constructor Summary | |
---|---|
CompassFormat()
Creates a new formatter. |
Method Summary | |
---|---|
java.lang.StringBuffer |
format(double number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Formats a number into the specified string buffer. |
java.lang.StringBuffer |
format(long number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Formats a number into the specified string buffer. |
java.lang.String |
getDirectionCode(double direction)
Returns a string representing the direction. |
java.lang.Number |
parse(java.lang.String source,
java.text.ParsePosition parsePosition)
This method returns null for all inputs. |
Methods inherited from class java.text.NumberFormat |
---|
clone, equals, format, format, format, getAvailableLocales, getCurrency, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, getRoundingMode, hashCode, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setCurrency, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setParseIntegerOnly, setRoundingMode |
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 java.lang.String[] DIRECTIONS
Constructor Detail |
---|
public CompassFormat()
Method Detail |
---|
public java.lang.String getDirectionCode(double direction)
direction
- the direction.
public java.lang.StringBuffer format(double number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
format
in class java.text.NumberFormat
number
- the number to format.toAppendTo
- the string buffer.pos
- the field position (ignored here).
public java.lang.StringBuffer format(long number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
format
in class java.text.NumberFormat
number
- the number to format.toAppendTo
- the string buffer.pos
- the field position (ignored here).
public java.lang.Number parse(java.lang.String source, java.text.ParsePosition parsePosition)
null
for all inputs. This class cannot
be used for parsing.
parse
in class java.text.NumberFormat
source
- the source string.parsePosition
- the parse position.
null
.
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |