org.placelab.demo.mapview
Class TrackedMapView

java.lang.Object
  extended byorg.eclipse.swt.widgets.Widget
      extended byorg.eclipse.swt.widgets.Control
          extended byorg.eclipse.swt.widgets.Scrollable
              extended byorg.eclipse.swt.widgets.Composite
                  extended byorg.placelab.util.swt.SwtScrolledComposite
                      extended byorg.placelab.demo.mapview.MapView
                          extended byorg.placelab.demo.mapview.TrackedMapView
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable, EstimateListener

public class TrackedMapView
extends MapView
implements EstimateListener


Field Summary
protected  APOverlay beacons
           
protected  PlacelabWithProxy daemon
           
protected  Mapper mapper
           
protected  ParticleFilterOverlay particles
           
protected  SpotterPoker poker
           
protected  ReticleOverlay reticles
           
protected  boolean showParticles
           
protected  Tracker tracker
           
 
Fields inherited from class org.placelab.demo.mapview.MapView
dragBegin, dragOutline, drawBorder, holder, iconCursor, iconTextBg, mapData, mapHistory, mapImage, mapImageGlyph, oldBounds, overlays, placeIcons, places, SHIFT, SMALL_DEVICE_SIZE, zoom, zoomValues
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
TrackedMapView(org.eclipse.swt.widgets.Composite parent, int style, boolean useScrollBars)
           
TrackedMapView(org.eclipse.swt.widgets.Composite parent, int style, boolean useScrollBars, PlacelabWithProxy daemon)
           
TrackedMapView(org.eclipse.swt.widgets.Composite parent, int style, boolean useScrollBars, Tracker _tracker, Mapper _mapper)
           
TrackedMapView(org.eclipse.swt.widgets.Composite parent, int style, PlacelabWithProxy daemon)
           
TrackedMapView(org.eclipse.swt.widgets.Composite parent, int style, Tracker _tracker, Mapper _mapper)
           
 
Method Summary
 void estimateUpdated(Tracker t, Estimate est, Measurement m)
          Implement this method to respond to updates from the Tracker(s) you are registered with.
 boolean getAutoScroll()
           
 boolean getAutoZoom()
           
 SpotterPoker getPoker()
           
 boolean getShowBeacons()
           
 boolean getShowParticles()
           
 void handleKeyPress(org.eclipse.swt.events.KeyEvent e)
           
 void setAutoScroll(boolean scroll)
           
 void setAutoZoom(boolean zoom)
           
 void setDaemon(PlacelabWithProxy daemon)
           
 void setPulseInfo(BeaconMeasurement meas)
           
 void setShowBeacons(boolean flag)
           
 void setShowParticles(boolean showParticles)
           
 void setTracker(Tracker _tracker, Mapper _mapper)
           
 
Methods inherited from class org.placelab.demo.mapview.MapView
addOverlay, clearPlaceIcons, containsCoordinate, doscroll, dozoom, getHolder, getMapData, getMapSize, getOriginLat, getOriginLon, getOverlaysMenu, getPixelsPerLat, getPixelsPerLon, getPoint, getUseScrollBars, getZoom, isInTigerMode, isVisible, latitudeToPixels, longitudeToPixels, onDispose, overlayHasNewTopGlyph, pixelsToLatitude, pixelsToLongitude, placeOnMap, removeOverlay, saveMapAsImage, setMapData, setOrigin, setPlaceSets, setSize, setSize, setZoom, shift, zoomForRectangle, zoomIn, zoomOut
 
Methods inherited from class org.placelab.util.swt.SwtScrolledComposite
computeSize, getAlwaysShowScrollBars, getContent, getOrigin, layout, setAlwaysShowScrollBars, setContent, setExpandHorizontal, setExpandVertical, setLayout, setMinHeight, setMinSize, setMinSize, setMinWidth, setOrigin
 
Methods inherited from class org.eclipse.swt.widgets.Composite
checkSubclass, getChildren, getLayout, getTabList, layout, setFocus, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

reticles

protected ReticleOverlay reticles

beacons

protected APOverlay beacons

particles

protected ParticleFilterOverlay particles

showParticles

protected boolean showParticles

poker

protected SpotterPoker poker

daemon

protected PlacelabWithProxy daemon

tracker

protected Tracker tracker

mapper

protected Mapper mapper
Constructor Detail

TrackedMapView

public TrackedMapView(org.eclipse.swt.widgets.Composite parent,
                      int style,
                      PlacelabWithProxy daemon)

TrackedMapView

public TrackedMapView(org.eclipse.swt.widgets.Composite parent,
                      int style,
                      Tracker _tracker,
                      Mapper _mapper)

TrackedMapView

public TrackedMapView(org.eclipse.swt.widgets.Composite parent,
                      int style,
                      boolean useScrollBars,
                      Tracker _tracker,
                      Mapper _mapper)

TrackedMapView

public TrackedMapView(org.eclipse.swt.widgets.Composite parent,
                      int style,
                      boolean useScrollBars)

TrackedMapView

public TrackedMapView(org.eclipse.swt.widgets.Composite parent,
                      int style,
                      boolean useScrollBars,
                      PlacelabWithProxy daemon)
Method Detail

setTracker

public void setTracker(Tracker _tracker,
                       Mapper _mapper)

setDaemon

public void setDaemon(PlacelabWithProxy daemon)

setPulseInfo

public void setPulseInfo(BeaconMeasurement meas)

getPoker

public SpotterPoker getPoker()

setAutoScroll

public void setAutoScroll(boolean scroll)

getAutoScroll

public boolean getAutoScroll()

setAutoZoom

public void setAutoZoom(boolean zoom)

getAutoZoom

public boolean getAutoZoom()

setShowParticles

public void setShowParticles(boolean showParticles)

getShowParticles

public boolean getShowParticles()

estimateUpdated

public void estimateUpdated(Tracker t,
                            Estimate est,
                            Measurement m)
Description copied from interface: EstimateListener
Implement this method to respond to updates from the Tracker(s) you are registered with.

Specified by:
estimateUpdated in interface EstimateListener
Parameters:
t - the Tracker producing the Estimate
est - the Estimate produced by the Tracker
m - the latest Measurement used by the Tracker to produce the Estimate

getShowBeacons

public boolean getShowBeacons()

setShowBeacons

public void setShowBeacons(boolean flag)

handleKeyPress

public void handleKeyPress(org.eclipse.swt.events.KeyEvent e)
Overrides:
handleKeyPress in class MapView