com.google.gwt.maps.client.overlay
Class Overlay.ConcreteOverlay
java.lang.Object
com.google.gwt.maps.client.overlay.Overlay
com.google.gwt.maps.client.overlay.Overlay.ConcreteOverlay
- Direct Known Subclasses:
- GeoXmlOverlay, GroundOverlay, InfoWindow, Layer, Marker, Polygon, Polyline, StreetviewOverlay, TileLayerOverlay, TrafficOverlay
- Enclosing class:
- Overlay
public static class Overlay.ConcreteOverlay
- extends Overlay
This class is used to wrap Overlays written entirely in JavaScript.
Note that the "Overlay" class is intended to be a superclass, and thus,
implements its methods on the prototype of the GOverlay object.
ConcreteOverlay is intended to be used when you don't want to subclass
Overlay but use it directly.
Fields inherited from class com.google.gwt.maps.client.overlay.Overlay |
jsoPeer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Overlay.ConcreteOverlay
public Overlay.ConcreteOverlay(com.google.gwt.core.client.JavaScriptObject jsoPeer)
copy
protected final Overlay copy()
- Description copied from class:
Overlay
- Returns an uninitialized copy of itself that can be added to the map.
- Specified by:
copy
in class Overlay
- Returns:
- an uninitialized copy of itself that can be added to the map.
initialize
protected final void initialize(MapWidget map)
- Description copied from class:
Overlay
- Called by the map after the overlay is added to the map using
MapWidget.addOverlay(Overlay)
. The overlay object can draw itself
into the different panes of the map that can be obtained using
MapWidget.getPane(com.google.gwt.maps.client.MapPaneType)
.
- Specified by:
initialize
in class Overlay
- Parameters:
map
- The map this overlay has been added to.
redraw
protected final void redraw(boolean force)
- Description copied from class:
Overlay
- Called by the map when the map display has changed.
- Specified by:
redraw
in class Overlay
- Parameters:
force
- The argument force will be true if the zoom level or the pixel
offset of the map view has changed, so that the pixel coordinates
need to be recomputed.
remove
protected final void remove()
- Description copied from class:
Overlay
- Called by the map after the overlay is removed from the map using
MapWidget.removeOverlay(Overlay)
or
MapWidget.clearOverlays()
. The overlay must remove itself from the
map panes here.
- Specified by:
remove
in class Overlay