com.phidgets.event
Class GPSPositionChangeEvent

java.lang.Object
  extended bycom.phidgets.event.GPSPositionChangeEvent

public class GPSPositionChangeEvent
extends java.lang.Object

This class represents the data for a GPSPositionChangeEvent.

Author:
Phidgets Inc.

Constructor Summary
GPSPositionChangeEvent(Phidget source, double latitude, double longitude, double altitude)
          Class constructor.
 
Method Summary
 double getAltitude()
          Returns the altitude of the GPS, in meters.
 double getLatitude()
          Returns the latitude of the GPS, in signed degrees format.
 double getLongitude()
          Returns the longitude of the GPS, in signed degrees format
 Phidget getSource()
          Returns the source Phidget of this event.
 java.lang.String toString()
          Returns a string containing information about the event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GPSPositionChangeEvent

public GPSPositionChangeEvent(Phidget source,
                              double latitude,
                              double longitude,
                              double altitude)
Class constructor. This is called internally by the phidget library when creating this event.

Parameters:
source - the Phidget object from which this event originated
Method Detail

getSource

public Phidget getSource()
Returns the source Phidget of this event. This is a reference to the Phidget object from which this event was called. This object can be cast into a specific type of Phidget object to call specific device calls on it.

Returns:
the event caller

getLatitude

public double getLatitude()
Returns the latitude of the GPS, in signed degrees format.

Returns:
the latitude

getLongitude

public double getLongitude()
Returns the longitude of the GPS, in signed degrees format

Returns:
the longitude

getAltitude

public double getAltitude()
Returns the altitude of the GPS, in meters.

Returns:
the altitude

toString

public java.lang.String toString()
Returns a string containing information about the event.

Returns:
an informative event string