com.google.gwt.maps.client.overlay
Class Overlay.ConcreteOverlay

java.lang.Object
  extended by com.google.gwt.maps.client.overlay.Overlay
      extended by com.google.gwt.maps.client.overlay.Overlay.ConcreteOverlay
Direct Known Subclasses:
GeoXmlOverlay, GroundOverlay, InfoWindow, Marker, Polygon, Polyline, 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.maps.client.overlay.Overlay
Overlay.ConcreteOverlay
 
Field Summary
 
Fields inherited from class com.google.gwt.maps.client.overlay.Overlay
jsoPeer
 
Constructor Summary
Overlay.ConcreteOverlay(com.google.gwt.core.client.JavaScriptObject jsoPeer)
           
 
Method Summary
protected  Overlay copy()
          Returns an uninitialized copy of itself that can be added to the map.
protected  void initialize(MapWidget map)
          Called by the map after the overlay is added to the map using MapWidget.addOverlay(Overlay).
protected  void redraw(boolean force)
          Called by the map when the map display has changed.
protected  void remove()
          Called by the map after the overlay is removed from the map using MapWidget.removeOverlay(Overlay) or MapWidget.clearOverlays().
 
Methods inherited from class com.google.gwt.maps.client.overlay.Overlay
getZIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Overlay.ConcreteOverlay

public Overlay.ConcreteOverlay(com.google.gwt.core.client.JavaScriptObject jsoPeer)
Method Detail

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