|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.placelab.demo.mapview.MapViewOverlay
org.placelab.demo.mapview.ReticleOverlay
Implements the reticle that tracks movement on the mapviews by listening to updates from placelab.
| Field Summary | |
boolean |
autoscroll
|
FilteredEstimateListener |
estimateListener
|
static int[] |
reticleColors
|
protected GlyphReticle[] |
reticles
|
Tracker |
tracker
|
| Fields inherited from class org.placelab.demo.mapview.MapViewOverlay |
FILTER_TIME, glyphs, holder, isVisible, view |
| Constructor Summary | |
ReticleOverlay(MapView view,
PlacelabWithProxy daemon)
|
|
ReticleOverlay(MapView view,
Tracker tracker)
|
|
| 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 |
getDrawConfidence()
|
java.lang.String |
getName()
Returns the name that is displayed in menus and so forth referring to this overlay. |
org.eclipse.swt.graphics.Rectangle |
getSuggestedArea()
If your overlay has an area that it would like to keep onscreen if possible, then you can return that here. |
Glyph |
getTopGlyph()
Returns the top glyph in this overlay |
void |
mapChanged(MapBacking map)
When the mapview has its maps switched, this callback is given to allow the overlay to update its data for the new map. |
void |
mapZoomed(double zoom)
When the mapview is zoomed, this callback is given to allow you to update your overlay. |
void |
plotReticle(Tracker t,
Estimate est,
int reticleIdx)
|
void |
setAutoScroll(boolean scroll)
|
void |
setDaemon(PlacelabWithProxy daemon)
|
void |
setDrawConfidence(boolean flag)
|
void |
setTracker(Tracker _tracker)
|
void |
updateReticle(int idx,
int x,
int y,
int radius)
|
| Methods inherited from class org.placelab.demo.mapview.MapViewOverlay |
dispose, isVisible, moveAbove, setVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected GlyphReticle[] reticles
public static int[] reticleColors
public boolean autoscroll
public Tracker tracker
public FilteredEstimateListener estimateListener
| Constructor Detail |
public ReticleOverlay(MapView view,
PlacelabWithProxy daemon)
public ReticleOverlay(MapView view,
Tracker tracker)
| Method Detail |
public void setTracker(Tracker _tracker)
public void setDaemon(PlacelabWithProxy daemon)
public void setAutoScroll(boolean scroll)
public void mapChanged(MapBacking map)
MapViewOverlay
mapChanged in class MapViewOverlaypublic void mapZoomed(double zoom)
MapViewOverlay
mapZoomed in class MapViewOverlaypublic java.lang.String getName()
MapViewOverlay
getName in class MapViewOverlay
public void estimateUpdated(Tracker t,
Estimate est,
Measurement m)
EstimateListener
estimateUpdated in interface EstimateListenert - the Tracker producing the Estimateest - the Estimate produced by the Trackerm - the latest Measurement used by the Tracker to produce the Estimate
public void plotReticle(Tracker t,
Estimate est,
int reticleIdx)
public void updateReticle(int idx,
int x,
int y,
int radius)
public void setDrawConfidence(boolean flag)
public boolean getDrawConfidence()
public org.eclipse.swt.graphics.Rectangle getSuggestedArea()
MapViewOverlay
getSuggestedArea in class MapViewOverlaypublic Glyph getTopGlyph()
MapViewOverlay
getTopGlyph in class MapViewOverlay
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||