Class AngleFormat

java.lang.Object
  extended by java.text.Format
      extended by java.text.NumberFormat
          extended by AngleFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
TimeFormat

public class AngleFormat
extends java.text.NumberFormat

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.NumberFormat
java.text.NumberFormat.Field
 
Field Summary
 int bottomLevel
           
static int COLONS
           
static int DEGREE
           
static int DMS
           
static int MINUTE
           
static int SECOND
           
 java.text.DecimalFormat seconds
           
static int SYMBOLS
           
 int topLevel
           
 
Fields inherited from class java.text.NumberFormat
FRACTION_FIELD, INTEGER_FIELD
 
Constructor Summary
AngleFormat()
           
AngleFormat(java.text.DecimalFormat df)
           
AngleFormat(int decimals)
           
 
Method Summary
 void colons()
           
 java.lang.StringBuffer format(double number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
           
 java.lang.StringBuffer format(long number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
           
 int getBottomLevel()
           
 java.text.DecimalFormat getSecondsFormat()
           
 int getSeparator()
           
 int getTopLevel()
           
 boolean isOneSided()
           
 boolean isWrapping()
           
 void letters()
           
 java.lang.Number parse(java.lang.String source, java.text.ParsePosition parsePosition)
           
 java.lang.Number parse(java.lang.String source, java.text.ParsePosition parsePosition, int fromLevel)
           
 void setBottomLevel(int level)
           
 void setOneSided(boolean value)
           
 void setSecondsFormat(java.text.DecimalFormat df)
           
 void setSeparator(int type)
           
 void setTopLevel(int level)
           
 void symbols()
           
 java.lang.String toString(double angle)
           
 void wrap(boolean value)
           
 
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, hashCode, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setCurrency, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setParseIntegerOnly
 
Methods inherited from class java.text.Format
format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

topLevel

public int topLevel

bottomLevel

public int bottomLevel

seconds

public java.text.DecimalFormat seconds

DEGREE

public static final int DEGREE
See Also:
Constant Field Values

MINUTE

public static final int MINUTE
See Also:
Constant Field Values

SECOND

public static final int SECOND
See Also:
Constant Field Values

COLONS

public static final int COLONS
See Also:
Constant Field Values

DMS

public static final int DMS
See Also:
Constant Field Values

SYMBOLS

public static final int SYMBOLS
See Also:
Constant Field Values
Constructor Detail

AngleFormat

public AngleFormat()

AngleFormat

public AngleFormat(java.text.DecimalFormat df)

AngleFormat

public AngleFormat(int decimals)
Method Detail

setSeparator

public void setSeparator(int type)

getSeparator

public int getSeparator()

colons

public void colons()

letters

public void letters()

symbols

public void symbols()

setTopLevel

public void setTopLevel(int level)

setBottomLevel

public void setBottomLevel(int level)

getTopLevel

public int getTopLevel()

getBottomLevel

public int getBottomLevel()

setSecondsFormat

public void setSecondsFormat(java.text.DecimalFormat df)

getSecondsFormat

public java.text.DecimalFormat getSecondsFormat()

setOneSided

public void setOneSided(boolean value)

isOneSided

public boolean isOneSided()

wrap

public void wrap(boolean value)

isWrapping

public boolean isWrapping()

format

public java.lang.StringBuffer format(double number,
                                     java.lang.StringBuffer toAppendTo,
                                     java.text.FieldPosition pos)
Specified by:
format in class java.text.NumberFormat

format

public java.lang.StringBuffer format(long number,
                                     java.lang.StringBuffer toAppendTo,
                                     java.text.FieldPosition pos)
Specified by:
format in class java.text.NumberFormat

parse

public java.lang.Number parse(java.lang.String source,
                              java.text.ParsePosition parsePosition)
Specified by:
parse in class java.text.NumberFormat

parse

public java.lang.Number parse(java.lang.String source,
                              java.text.ParsePosition parsePosition,
                              int fromLevel)

toString

public java.lang.String toString(double angle)