|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
jwo.utils.gui.JWDialogue
jwo.landserf.gui.GPSImportBox
public class GPSImportBox
Allows GPS waypoint, route and track data to be imported into LandSerf as vector objects.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class jwo.utils.gui.JWDialogue |
|---|
DIALOGUE, MONOLOGUE |
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
GPSImportBox(GPS gps,
GISFrame gisFrame)
Displays available datasets from the given GPS for download. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
Responds to a button press by downloading the requested data or by setting/clearing the waypoint checkboxes. |
void |
closedown()
Removes all GPS listeners before closing window. |
VectorMap |
getSelectedGPSData()
Returns a Vector map containing all the selected GPS objects (waypoints, routes and tracks). |
void |
routeReceived(GPSRoute route)
Handles the receipt of a route header from the GPS. |
void |
run()
Starts the GPS download as a threaded process. |
void |
trackReceived(GPSTrack track)
Handles the receipt of a track packet from the GPS. |
void |
transferComplete(int commandID)
Called when the transfer to/from GPS is complete. |
void |
transferStarted(int number)
Called when a transfer to/from GPS is initiated. |
void |
waypointReceived(GPSWaypoint wp)
Handles the receipt of a waypoint from the GPS. |
| Methods inherited from class jwo.utils.gui.JWDialogue |
|---|
addDialogueListener, checkInput, getContentPane, isChanged, removeDialogueListener, setFullBackground |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GPSImportBox(GPS gps,
GISFrame gisFrame)
gps - GPS from which data will be extracted. A connection to
this GPS must have previously been established, most
probably though the GPSConfigBox.gisFrame - Frame from which dialogue was called.GPSConfigBox| Method Detail |
|---|
public void closedown()
closedown in class JWDialoguepublic void run()
run in interface Runnablepublic void waypointReceived(GPSWaypoint wp)
waypointReceived in interface GPSWaypointListenerwp - Waypoint information from the GPS.public void trackReceived(GPSTrack track)
trackReceived in interface GPSTrackListenertrack - Track packet from the GPS.public void routeReceived(GPSRoute route)
routeReceived in interface GPSRouteListenerroute - Route information from the GPS.public void transferStarted(int number)
transferStarted in interface GPSTransferListenernumber - The of data packets that are about be transferred, e.g. the number of waypoints.
If it is not possible to tell how many data packets will be transferred, -1 is returned.public void transferComplete(int commandID)
transferComplete in interface GPSTransferListenercommandID - ID of command that has been completed.public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerevent - Action event representing button press.public VectorMap getSelectedGPSData()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||