org.placelab.demo.mapview
Class MapDemo

java.lang.Object
  extended byorg.placelab.demo.mapview.MapDemo
Direct Known Subclasses:
FusionMapDemo

public class MapDemo
extends java.lang.Object

A map application.


Field Summary
protected  org.eclipse.swt.widgets.Menu bar
           
protected  PlacelabWithProxy daemon
           
 WadData data
           
protected  org.eclipse.swt.widgets.Display display
           
protected  TrackedMapView mapView
           
protected  java.util.Vector placeItems
           
protected  org.eclipse.swt.widgets.Shell shell
           
protected  Spotter sp
           
 
Constructor Summary
protected MapDemo()
           
  MapDemo(java.lang.String logfile, java.lang.String mapArchive, java.lang.String mapName, Mapper m)
           
 
Method Summary
protected  java.lang.String askUserForFile()
           
protected  void buildMenu()
           
protected  void buildShell()
           
protected  Tracker createTracker(Mapper m)
           
protected  void doEventLoop()
           
protected  void errorDialog(java.lang.String msg)
           
protected  void errorDialog(java.lang.String msg, java.lang.Throwable e)
           
 PlacelabWithProxy getDaemon()
           
protected  void loadWad()
           
protected  void loadWad(java.lang.String path, java.lang.String mapName)
           
static void main(java.lang.String[] args)
          Passing in a file will cause a log spotter to be created.
protected  void mapAction(org.eclipse.swt.events.SelectionEvent e)
           
protected  void placeAction(org.eclipse.swt.events.SelectionEvent e)
           
protected  void resize()
           
 void run()
           
protected  void saveAsWad()
           
protected  void saveWad()
           
protected  void shutdown()
           
protected  void toggleAutoScroll()
           
protected  void toggleAutoZoom()
           
protected  void toggleBeacons()
           
protected  void toggleParticles()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

daemon

protected PlacelabWithProxy daemon

display

protected org.eclipse.swt.widgets.Display display

shell

protected org.eclipse.swt.widgets.Shell shell

mapView

protected TrackedMapView mapView

bar

protected org.eclipse.swt.widgets.Menu bar

placeItems

protected java.util.Vector placeItems

data

public WadData data

sp

protected Spotter sp
Constructor Detail

MapDemo

protected MapDemo()

MapDemo

public MapDemo(java.lang.String logfile,
               java.lang.String mapArchive,
               java.lang.String mapName,
               Mapper m)
        throws java.io.IOException
Method Detail

createTracker

protected Tracker createTracker(Mapper m)

loadWad

protected void loadWad()

loadWad

protected void loadWad(java.lang.String path,
                       java.lang.String mapName)

askUserForFile

protected java.lang.String askUserForFile()

errorDialog

protected void errorDialog(java.lang.String msg)

errorDialog

protected void errorDialog(java.lang.String msg,
                           java.lang.Throwable e)

buildShell

protected void buildShell()

buildMenu

protected void buildMenu()

mapAction

protected void mapAction(org.eclipse.swt.events.SelectionEvent e)

saveWad

protected void saveWad()

saveAsWad

protected void saveAsWad()

placeAction

protected void placeAction(org.eclipse.swt.events.SelectionEvent e)

toggleBeacons

protected void toggleBeacons()

toggleAutoScroll

protected void toggleAutoScroll()

toggleAutoZoom

protected void toggleAutoZoom()

toggleParticles

protected void toggleParticles()

shutdown

protected void shutdown()

resize

protected void resize()

run

public void run()
         throws SpotterException
Throws:
SpotterException

doEventLoop

protected void doEventLoop()

getDaemon

public PlacelabWithProxy getDaemon()

main

public static void main(java.lang.String[] args)
Passing in a file will cause a log spotter to be created. If no file name is passed, a wifi spotter will be created