com.esri.core.gps
Class GeoPosition

java.lang.Object
  extended by com.esri.core.gps.GeoPosition

public class GeoPosition
extends Object

Class that represents the geo-position - that includes geo-coordinate and time.


Constructor Summary
GeoPosition(GpsGeoCoordinate location, Date time)
          Creates a GeoPosition object with location and time.
 
Method Summary
 GpsGeoCoordinate getLocation()
           
 Date getTime()
           
static DateFormat getTimeFormat()
           
 void setLocation(GpsGeoCoordinate location)
          Sets the geo-coordinate.
 void setTime(Date time)
          Sets the time.
static void setTimeFormat(DateFormat timeFormat)
          Sets time format.
 String toString()
          Converts GeoPosition to its string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeoPosition

public GeoPosition(GpsGeoCoordinate location,
                   Date time)
Creates a GeoPosition object with location and time.

Parameters:
location - corresponding geo-coordinate.
time - corresponding time.
Method Detail

getTimeFormat

public static DateFormat getTimeFormat()
Returns:
the current time format. Default is "MM/dd/yyyy hh:mm:ss a z".

setTimeFormat

public static void setTimeFormat(DateFormat timeFormat)
Sets time format. The time format is used when the GeoPosition is converted to string.

Parameters:
timeFormat - required time format.

getLocation

public GpsGeoCoordinate getLocation()
Returns:
the geo-coordinate.

setLocation

public void setLocation(GpsGeoCoordinate location)
Sets the geo-coordinate.

Parameters:
location - the geo-coordinate.

setTime

public void setTime(Date time)
Sets the time.

Parameters:
time - corresponding time.

getTime

public Date getTime()
Returns:
the time.

toString

public String toString()
Converts GeoPosition to its string representation.

Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.