com.partnersoft.maps.app
Class TruckGUI

java.lang.Object
  extended by com.partnersoft.maps.app.MapAppGUI
      extended by com.partnersoft.maps.app.TruckGUI

public class TruckGUI
extends MapAppGUI

A GUI implementation for truck computers. Truck computers are characterized by small screens and a touchscreen interface instead of mouse and keyboard. Therefore, this GUI implementation gets rid of any excess window decorations, makes the buttons bigger, hides the side panel most of the time, and adds a touchscreen keyboard. Since the user can't zoom in and out with the shift key, we've also added zoom buttons. One problem with the touchscreen drivers for the eGalax touchscreen, which is what we're developing with and deploying right now, is that dragging the stylus is sent as mouse motion without a mouse button press, which makes dragging difficult. The only way to trigger a mouse down event with these drivers is to hold the stylus down for a second and then drag. As a quick fix, we've added an option to treat all mouse motion as dragging the map. (note: that didn't actually work.) ?

Author:
Russell Cagle

Field Summary
 
Fields inherited from class com.partnersoft.maps.app.MapAppGUI
app, dataPanel, findPanel, jobFileChooser, menus, viewPanel
 
Constructor Summary
TruckGUI(MapApp argApp)
           
 
Method Summary
 java.awt.Window getWindow()
           
 void setCoordinateDisplay(java.lang.String s)
           
 void setCurrentZoom(int currentZoom)
           
 void setGridDisplay(java.lang.String s)
           
 void setHoverDisplay(java.lang.String s)
           
 void setMeasureDisplay(java.lang.String s)
           
 void setZoomCount(int zoomCount)
           
 void showDataTab()
           
 void showFindTab()
           
 void showMap()
           
 
Methods inherited from class com.partnersoft.maps.app.MapAppGUI
getDataPanel, getFindPanel, getMenus, getViewPanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TruckGUI

public TruckGUI(MapApp argApp)
Method Detail

setHoverDisplay

public void setHoverDisplay(java.lang.String s)
Specified by:
setHoverDisplay in class MapAppGUI

setCoordinateDisplay

public void setCoordinateDisplay(java.lang.String s)
Specified by:
setCoordinateDisplay in class MapAppGUI

setGridDisplay

public void setGridDisplay(java.lang.String s)
Specified by:
setGridDisplay in class MapAppGUI

setMeasureDisplay

public void setMeasureDisplay(java.lang.String s)
Specified by:
setMeasureDisplay in class MapAppGUI

setZoomCount

public void setZoomCount(int zoomCount)
Specified by:
setZoomCount in class MapAppGUI

setCurrentZoom

public void setCurrentZoom(int currentZoom)
Specified by:
setCurrentZoom in class MapAppGUI

showDataTab

public void showDataTab()
Specified by:
showDataTab in class MapAppGUI

showFindTab

public void showFindTab()
Specified by:
showFindTab in class MapAppGUI

showMap

public void showMap()
Specified by:
showMap in class MapAppGUI

getWindow

public java.awt.Window getWindow()
Specified by:
getWindow in class MapAppGUI