courselog.gpsutils
Class ReceiverEvent

java.lang.Object
  extended by ewe.ui.Event
      extended by courselog.gpsutils.ReceiverEvent

public class ReceiverEvent
extends ewe.ui.Event

Specific Event dispatched when the GPS receiver provides new data or status. Also used by the PositionTracer when the trace state is modified.


Field Summary
static int NEWPOINT
          Indicates a new point is available.
static int NEWTRACELOG
          indicates a tracer is updated.
static int STATUSCHANGED
          Indicates receiver status has changed.
 
Fields inherited from class ewe.ui.Event
consumed, events, flags, target, timeStamp, type, window
 
Constructor Summary
ReceiverEvent()
          Creates a new instance of ReceiverEvent with empty values
ReceiverEvent(java.lang.Object evtTarget, int evtType)
          Creates a new instance of ReceiverEvent
 
Method Summary
 
Methods inherited from class ewe.ui.Event
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NEWPOINT

public static int NEWPOINT
Indicates a new point is available.


NEWTRACELOG

public static int NEWTRACELOG
indicates a tracer is updated.


STATUSCHANGED

public static int STATUSCHANGED
Indicates receiver status has changed.

See Also:
SerialGPSConnection.status
Constructor Detail

ReceiverEvent

public ReceiverEvent(java.lang.Object evtTarget,
                     int evtType)
Creates a new instance of ReceiverEvent

Parameters:
evtTarget - Target of the event (either GPS receiver or tracer).
evtType - Type of event (see static constants).

ReceiverEvent

public ReceiverEvent()
Creates a new instance of ReceiverEvent with empty values