com.jhlabs.map
Class DegreeUnit

java.lang.Object
  extended by com.jhlabs.map.Unit
      extended by com.jhlabs.map.DegreeUnit
All Implemented Interfaces:
Serializable

public class DegreeUnit
extends Unit

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jhlabs.map.Unit
abbreviation, ANGLE_UNIT, AREA_UNIT, LENGTH_UNIT, name, plural, value, VOLUME_UNIT
 
Constructor Summary
DegreeUnit()
           
 
Method Summary
 String format(double n)
           
 String format(double n, boolean abbrev)
           
 String format(double x, double y, boolean abbrev)
           
 double parse(String s)
           
 
Methods inherited from class com.jhlabs.map.Unit
equals, format, fromBase, toBase, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DegreeUnit

public DegreeUnit()
Method Detail

parse

public double parse(String s)
             throws NumberFormatException
Overrides:
parse in class Unit
Throws:
NumberFormatException

format

public String format(double n)
Overrides:
format in class Unit

format

public String format(double n,
                     boolean abbrev)
Overrides:
format in class Unit

format

public String format(double x,
                     double y,
                     boolean abbrev)
Overrides:
format in class Unit


Copyright © 2011. All Rights Reserved.