org.placelab.demo.mapview
Class APOverlay

java.lang.Object
  extended byorg.placelab.demo.mapview.MapViewOverlay
      extended byorg.placelab.demo.mapview.APOverlay
All Implemented Interfaces:
EstimateListener

public class APOverlay
extends MapViewOverlay
implements EstimateListener


Field Summary
protected  org.eclipse.swt.graphics.Color beaconColor
           
protected  java.util.Hashtable beaconHash
           
protected  java.util.Hashtable currentBeaconMap
           
protected  boolean drawNames
           
protected  FilteredEstimateListener estimateListener
           
protected  Mapper mapper
           
protected  Glyph top
           
protected  Tracker tracker
           
 
Fields inherited from class org.placelab.demo.mapview.MapViewOverlay
FILTER_TIME, glyphs, holder, isVisible, view
 
Constructor Summary
APOverlay(MapView view, Mapper mapper)
           
APOverlay(MapView view, PlacelabWithProxy daemon)
           
APOverlay(MapView view, Tracker tracker, Mapper mapper)
           
 
Method Summary
 void estimateUpdated(Tracker t, Estimate e, Measurement m)
          Implement this method to respond to updates from the Tracker(s) you are registered with.
 java.lang.String getName()
          Returns the name that is displayed in menus and so forth referring to this overlay.
 Glyph getTopGlyph()
          Returns the top glyph in this overlay
 void lightBeacons(BeaconMeasurement seen)
           
 void loadBeaconList()
           
 void mapChanged(MapBacking newMap)
          When the mapview has its maps switched, this callback is given to allow the overlay to update its data for the new map.
 void setDaemon(PlacelabWithProxy daemon)
           
 void setDefaultBeaconColor(org.eclipse.swt.graphics.Color aColor)
           
 void setDrawNames(boolean flag)
           
 void setTracker(Tracker _tracker, Mapper _mapper)
           
 void setVisible(boolean flag)
          Sets whether or not the overlay ought to be shown on the mapview.
 
Methods inherited from class org.placelab.demo.mapview.MapViewOverlay
dispose, getSuggestedArea, isVisible, mapZoomed, moveAbove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapper

protected Mapper mapper

beaconHash

protected java.util.Hashtable beaconHash

currentBeaconMap

protected java.util.Hashtable currentBeaconMap

top

protected Glyph top

beaconColor

protected org.eclipse.swt.graphics.Color beaconColor

drawNames

protected boolean drawNames

tracker

protected Tracker tracker

estimateListener

protected FilteredEstimateListener estimateListener
Constructor Detail

APOverlay

public APOverlay(MapView view,
                 Mapper mapper)

APOverlay

public APOverlay(MapView view,
                 PlacelabWithProxy daemon)

APOverlay

public APOverlay(MapView view,
                 Tracker tracker,
                 Mapper mapper)
Method Detail

setDefaultBeaconColor

public void setDefaultBeaconColor(org.eclipse.swt.graphics.Color aColor)

setDrawNames

public void setDrawNames(boolean flag)

setDaemon

public void setDaemon(PlacelabWithProxy daemon)

setTracker

public void setTracker(Tracker _tracker,
                       Mapper _mapper)

mapChanged

public void mapChanged(MapBacking newMap)
Description copied from class: MapViewOverlay
When the mapview has its maps switched, this callback is given to allow the overlay to update its data for the new map.

Specified by:
mapChanged in class MapViewOverlay

setVisible

public void setVisible(boolean flag)
Description copied from class: MapViewOverlay
Sets whether or not the overlay ought to be shown on the mapview.

Overrides:
setVisible in class MapViewOverlay

getTopGlyph

public Glyph getTopGlyph()
Description copied from class: MapViewOverlay
Returns the top glyph in this overlay

Specified by:
getTopGlyph in class MapViewOverlay

getName

public java.lang.String getName()
Description copied from class: MapViewOverlay
Returns the name that is displayed in menus and so forth referring to this overlay. In this way, applications using mapviews can build menus that allow toggling of overlays in a generic fashion.

Specified by:
getName in class MapViewOverlay

loadBeaconList

public void loadBeaconList()

lightBeacons

public void lightBeacons(BeaconMeasurement seen)

estimateUpdated

public void estimateUpdated(Tracker t,
                            Estimate e,
                            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
e - the Estimate produced by the Tracker
m - the latest Measurement used by the Tracker to produce the Estimate