All Packages Class Hierarchy This Package Previous Next Index
Class cynosurex.geography.Coordinate
java.lang.Object
|
+----cynosurex.geography.Coordinate
- public abstract class Coordinate
- extends Object
- implements CommonInterface
-
degree
- Specifies a value between -179 and 180 for
longitude, and a value between -90 and 90 for latitude.
-
minute
- Specifies a value between 0 and 59.
-
MINUTE_MAX
-
-
MINUTE_MIN
-
-
second
- Specifies a value between 0 and 59.
-
SECOND_MAX
-
-
SECOND_MIN
-
-
Coordinate()
-
-
getDegree()
- Returns the degree field.
-
getMinute()
- Returns the minute field.
-
getSecond()
- Returns the second field.
-
getValue()
- Returns the degree with decimals.
-
setDegree(int)
-
-
setMinute(int)
-
-
setSecond(int)
-
-
setValue(double)
-
-
setValue(int, int, int)
-
-
toString()
- Returns a String object representing the instance.
MINUTE_MAX
public static final int MINUTE_MAX
MINUTE_MIN
public static final int MINUTE_MIN
SECOND_MAX
public static final int SECOND_MAX
SECOND_MIN
public static final int SECOND_MIN
degree
protected int degree
- Specifies a value between -179 and 180 for
longitude, and a value between -90 and 90 for latitude.
minute
protected int minute
- Specifies a value between 0 and 59.
The value 60 will be wrapped to 0, and degree will be incremented
in the process.
second
protected int second
- Specifies a value between 0 and 59.
The value 60 will be wrapped to 0, and minute will be incremented
in the process.
Coordinate
public Coordinate()
getDegree
public int getDegree()
- Returns the degree field.
getMinute
public int getMinute()
- Returns the minute field.
getSecond
public int getSecond()
- Returns the second field.
getValue
public double getValue()
- Returns the degree with decimals.
setValue
public void setValue(int degree,
int minute,
int second)
setValue
public abstract void setValue(double value)
setDegree
public abstract void setDegree(int degree)
setMinute
public abstract void setMinute(int minute)
setSecond
public abstract void setSecond(int second)
toString
public String toString()
- Returns a String object representing the instance.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index