|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.placelab.demo.mapview.MapViewOverlay
A MapViewOverlay exists to group a set of glyphs that are displayed over a MapView. Specifics of the drawing and updating of those glyphs are left to implementers.
| Field Summary | |
static long |
FILTER_TIME
|
protected java.util.Vector |
glyphs
when you create a new glyph, add it here |
GlyphHolder |
holder
|
protected boolean |
isVisible
|
MapView |
view
|
| Constructor Summary | |
MapViewOverlay(MapView view)
Creates a new overlay for the given mapview, and registers the overlay with the mapview. |
|
| Method Summary | |
void |
dispose()
|
abstract 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. |
abstract Glyph |
getTopGlyph()
Returns the top glyph in this overlay |
boolean |
isVisible()
|
abstract 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 |
mapZoomed(double newZoom)
When the mapview is zoomed, this callback is given to allow you to update your overlay. |
void |
moveAbove(Glyph below)
MapViewOverlays are layered in the order that they are added to the mapview. |
void |
setVisible(boolean visible)
Sets whether or not the overlay ought to be shown on the mapview. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public MapView view
public GlyphHolder holder
protected boolean isVisible
protected java.util.Vector glyphs
public static final long FILTER_TIME
| Constructor Detail |
public MapViewOverlay(MapView view)
| Method Detail |
public void setVisible(boolean visible)
public boolean isVisible()
public abstract void mapChanged(MapBacking newMap)
public void mapZoomed(double newZoom)
public org.eclipse.swt.graphics.Rectangle getSuggestedArea()
public void moveAbove(Glyph below)
public abstract Glyph getTopGlyph()
public abstract java.lang.String getName()
public void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||