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

Variable Index

 o degree
Specifies a value between -179 and 180 for longitude, and a value between -90 and 90 for latitude.
 o minute
Specifies a value between 0 and 59.
 o MINUTE_MAX
 o MINUTE_MIN
 o second
Specifies a value between 0 and 59.
 o SECOND_MAX
 o SECOND_MIN

Constructor Index

 o Coordinate()

Method Index

 o getDegree()
Returns the degree field.
 o getMinute()
Returns the minute field.
 o getSecond()
Returns the second field.
 o getValue()
Returns the degree with decimals.
 o setDegree(int)
 o setMinute(int)
 o setSecond(int)
 o setValue(double)
 o setValue(int, int, int)
 o toString()
Returns a String object representing the instance.

Variables

 o MINUTE_MAX
 public static final int MINUTE_MAX
 o MINUTE_MIN
 public static final int MINUTE_MIN
 o SECOND_MAX
 public static final int SECOND_MAX
 o SECOND_MIN
 public static final int SECOND_MIN
 o degree
 protected int degree
Specifies a value between -179 and 180 for longitude, and a value between -90 and 90 for latitude.

 o 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.

 o 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.

Constructors

 o Coordinate
 public Coordinate()

Methods

 o getDegree
 public int getDegree()
Returns the degree field.

 o getMinute
 public int getMinute()
Returns the minute field.

 o getSecond
 public int getSecond()
Returns the second field.

 o getValue
 public double getValue()
Returns the degree with decimals.

 o setValue
 public void setValue(int degree,
                      int minute,
                      int second)
 o setValue
 public abstract void setValue(double value)
 o setDegree
 public abstract void setDegree(int degree)
 o setMinute
 public abstract void setMinute(int minute)
 o setSecond
 public abstract void setSecond(int second)
 o 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