org.placelab.demo.mapview
Class APOverlay
java.lang.Object
org.placelab.demo.mapview.MapViewOverlay
org.placelab.demo.mapview.APOverlay
- All Implemented Interfaces:
- EstimateListener
- public class APOverlay
- extends MapViewOverlay
- implements EstimateListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
APOverlay
public APOverlay(MapView view,
Mapper mapper)
APOverlay
public APOverlay(MapView view,
PlacelabWithProxy daemon)
APOverlay
public APOverlay(MapView view,
Tracker tracker,
Mapper mapper)
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 Estimatee - the Estimate produced by the Trackerm - the latest Measurement used by the Tracker to produce the Estimate