es.uv.robotica.gvsig.mobile.gps.gui
Class GPSActivityDialog

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended byes.prodevelop.gvsig.mobile.gui.tab.TabbedDialog
                      extended byes.uv.robotica.gvsig.mobile.gps.gui.GPSActivityDialog
All Implemented Interfaces:
javax.accessibility.Accessible, java.util.EventListener, GPSRawDataListener, GPSRelevantEventsListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.event.MouseListener, java.io.Serializable

public class GPSActivityDialog
extends TabbedDialog
implements java.awt.event.MouseListener, GPSRawDataListener, GPSRelevantEventsListener

Author:
juangui
See Also:
Serialized Form

Field Summary
static java.lang.String PAUSE_BUTTON_IMAGE_FILE_NAME
           
static java.lang.String PLAY_BUTTON_IMAGE_FILE_NAME
           
static java.lang.String SAVE_BUTTON_IMAGE_FILE_NAME
           
static java.lang.String STOP_BUTTON_IMAGE_FILE_NAME
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
GPSActivityDialog(java.awt.Frame parent_frame)
          Constructor
 
Method Summary
 void gpsDisconnected(int origin)
          This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener
 void gpsNewAltitude(double altitude)
          This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener
 void gpsNewHeading(double heading)
          This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener
 void gpsNewPDOP(double pdop)
          This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener
 void gpsNewPosition(double longitude, double latitude)
          This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener
 void gpsNewQuality(int quality)
          This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener
 void gpsNewSatsUsed(int satUsed)
          This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener
 void gpsNewStatus(int status)
          This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener
 void gpsRawDataReceived(char[] raw_data, int offset, int length)
          Appends raw data received from the GPS to the console Implements org.dinopolis.gpstool.gpsinput.GPSRawDataListener
 void mouseClicked(java.awt.event.MouseEvent arg0)
          Process mouse click event in the dialog Overrides es.prodevelop.gvsig.mobile.gui.tab.TabbedDialog
 
Methods inherited from class es.prodevelop.gvsig.mobile.gui.tab.TabbedDialog
addTab, close, isOkPressed, mouseEntered, mouseExited, mousePressed, mouseReleased, reorder
 
Methods inherited from class java.awt.Dialog
addNotify, dispose, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseListener
mouseEntered, mouseExited, mousePressed, mouseReleased
 

Field Detail

PLAY_BUTTON_IMAGE_FILE_NAME

public static final java.lang.String PLAY_BUTTON_IMAGE_FILE_NAME
See Also:
Constant Field Values

PAUSE_BUTTON_IMAGE_FILE_NAME

public static final java.lang.String PAUSE_BUTTON_IMAGE_FILE_NAME
See Also:
Constant Field Values

STOP_BUTTON_IMAGE_FILE_NAME

public static final java.lang.String STOP_BUTTON_IMAGE_FILE_NAME
See Also:
Constant Field Values

SAVE_BUTTON_IMAGE_FILE_NAME

public static final java.lang.String SAVE_BUTTON_IMAGE_FILE_NAME
See Also:
Constant Field Values
Constructor Detail

GPSActivityDialog

public GPSActivityDialog(java.awt.Frame parent_frame)
Constructor

Parameters:
parent_frame -
Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent arg0)
Process mouse click event in the dialog Overrides es.prodevelop.gvsig.mobile.gui.tab.TabbedDialog

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class TabbedDialog

gpsRawDataReceived

public void gpsRawDataReceived(char[] raw_data,
                               int offset,
                               int length)
Appends raw data received from the GPS to the console Implements org.dinopolis.gpstool.gpsinput.GPSRawDataListener

Specified by:
gpsRawDataReceived in interface GPSRawDataListener
Parameters:
raw_data - the raw data received from the gps device.

gpsNewPosition

public void gpsNewPosition(double longitude,
                           double latitude)
This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener

Specified by:
gpsNewPosition in interface GPSRelevantEventsListener
Parameters:
longitude - latitude in degrees
latitude - latitude in degrees

gpsDisconnected

public void gpsDisconnected(int origin)
This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener


gpsNewAltitude

public void gpsNewAltitude(double altitude)
This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener

Specified by:
gpsNewAltitude in interface GPSRelevantEventsListener
Parameters:
altitude - altitude in meters

gpsNewSatsUsed

public void gpsNewSatsUsed(int satUsed)
This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener

Specified by:
gpsNewSatsUsed in interface GPSRelevantEventsListener
Parameters:
satUsed - number of satellites used

gpsNewPDOP

public void gpsNewPDOP(double pdop)
This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener

Specified by:
gpsNewPDOP in interface GPSRelevantEventsListener
Parameters:
pdop - position dillution of precision

gpsNewQuality

public void gpsNewQuality(int quality)
This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener

Specified by:
gpsNewQuality in interface GPSRelevantEventsListener
Parameters:
quality - one of the following values: - FIX_QUALITY_INVALID if the fix is invalid - FIX_QUALITY_GPS if the fix is an autonomous GPS fix - FIX_QUALITY_DGPS if the fix is a differential GPS fix

gpsNewStatus

public void gpsNewStatus(int status)
This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener

Specified by:
gpsNewStatus in interface GPSRelevantEventsListener
Parameters:
status - one of the following values: - FIX_DIMENSIONS_INVALID if the GPS has not a valid fix (less than 3 valid satellites) - FIX_DIMENSIONS_2D if the GPS is in 2D mode (less than 4 valid satellites) - FIX_DIMENSIONS_3D if the GPS is in 3D mode

gpsNewHeading

public void gpsNewHeading(double heading)
This method is just included to comply with GPSRelevantEventsListener interface Implements es.uv.robotica.gvsig.mobile.gps.listener.GPSRelevantEventsListener

Specified by:
gpsNewHeading in interface GPSRelevantEventsListener
Parameters:
heading - heading in degrees