gov.noaa.pmel.util
Class GeographicValue

java.lang.Object
  |
  +--gov.noaa.pmel.util.GeographicValue
Direct Known Subclasses:
Latitude, Longitude

public class GeographicValue
extends java.lang.Object

Base class used by LatitudeValue and LongitudeValue for translating between a float and deg/min/sec.


Constructor Summary
GeographicValue()
           
GeographicValue(float decVal)
           
 
Method Summary
 void decimalToDegMinSec()
           
 void degMinSecToDecimal()
           
 float getDecimalValue()
           
 int getDegrees()
           
 int getMinutes()
           
 int getSeconds()
           
 int getSign()
           
static void main(java.lang.String[] args)
           
 void setDecimalValue(float decimalValue)
           
 void setDegrees(int degrees)
           
 void setMinutes(int minutes)
           
 void setSeconds(int seconds)
           
 void setSign(int sign)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeographicValue

public GeographicValue()

GeographicValue

public GeographicValue(float decVal)
Method Detail

decimalToDegMinSec

public void decimalToDegMinSec()

degMinSecToDecimal

public void degMinSecToDecimal()

setDegrees

public void setDegrees(int degrees)

setMinutes

public void setMinutes(int minutes)

setSeconds

public void setSeconds(int seconds)

setSign

public void setSign(int sign)

setDecimalValue

public void setDecimalValue(float decimalValue)

getDegrees

public int getDegrees()

getMinutes

public int getMinutes()

getSeconds

public int getSeconds()

getSign

public int getSign()

getDecimalValue

public float getDecimalValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)


Send comments about the Scientific Graphics toolkit to Donald.W.Denbo@noaa.gov. For more information about Java Development in the EPIC Group see the EPIC Software Page
Generated on October 9 2003