com.partnersoft.maps.app
Class TruckSkin

java.lang.Object
  extended by com.partnersoft.maps.app.AbstractMapAppSkin
      extended by com.partnersoft.maps.app.TruckSkin
All Implemented Interfaces:
MapAppSkin

public class TruckSkin
extends AbstractMapAppSkin

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

Constructor Summary
TruckSkin()
           
 
Method Summary
 void addCustomControlPanel(java.lang.String name, java.awt.Container panel)
           
 MainWindow getWindow()
           
 void openWindows()
           
 void setup(MapApp app)
          Creates the gui.
 void showDataTab()
           
 void showFindTab()
           
 void showMap()
           
 void teardown()
          Kills the gui.
 
Methods inherited from class com.partnersoft.maps.app.AbstractMapAppSkin
getBackgroundColor, getForegroundColor, setColorsOn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TruckSkin

public TruckSkin()
Method Detail

setup

public void setup(MapApp app)
Description copied from interface: MapAppSkin
Creates the gui.

Specified by:
setup in interface MapAppSkin
Overrides:
setup in class AbstractMapAppSkin

teardown

public void teardown()
Description copied from interface: MapAppSkin
Kills the gui. The idea is to switch between skins.


showDataTab

public void showDataTab()

showFindTab

public void showFindTab()

showMap

public void showMap()

openWindows

public void openWindows()

addCustomControlPanel

public void addCustomControlPanel(java.lang.String name,
                                  java.awt.Container panel)

getWindow

public MainWindow getWindow()