org.placelab.demo.mapview
Class RegionOverlay
java.lang.Object
org.placelab.demo.mapview.MapViewOverlay
org.placelab.demo.mapview.RegionOverlay
- public class RegionOverlay
- extends MapViewOverlay
A region overlay displays {#link RegionBacking} objects on a {#link MapView}.
It also allows the regions to be manipulated by the user through the viewport.
|
Method Summary |
void |
addRegion(RegionBacking region)
|
void |
addRegions(java.util.Hashtable regions)
|
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 |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegionOverlay
public RegionOverlay(MapView view)
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
addRegion
public void addRegion(RegionBacking region)
addRegions
public void addRegions(java.util.Hashtable regions)
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