jp.sf.mapswidgets
Class GoogleMapsAdapter

java.lang.Object
  extended by jp.sf.mapswidgets.GoogleMapsAdapter
All Implemented Interfaces:
java.util.EventListener, GoogleMapsListener, org.eclipse.swt.internal.SWTEventListener

public class GoogleMapsAdapter
extends java.lang.Object
implements GoogleMapsListener

This adapter class provides default implementations for the methods described by the GoogleMapsListener interface.

See Also:
GoogleMapsListener

Constructor Summary
GoogleMapsAdapter()
           
 
Method Summary
 void allOverlaysRemoved()
          Called after all overlays are cleared from the map.
 void clicked(Overlay overlay)
          Called when the user clicks the overlay on the map.
 void clicked(Point point)
          Called when the user clicks the map.
 void mapTypeChanged()
          Called after the map type (Map, Hybrid, or Satellite) changes.
 void moved()
          Called when the map is moving.
 void moveEnded()
          Called at the end of a discrete or continuous map movement.
 void moveStarted()
          Called at the beginning of a continuous pan/drag movement.
 void overlayAdded(Overlay overlay)
          Called after an overlay is added to the map.
 void overlayRemoved(Overlay overlay)
          Called after an overlay is removed from the map.
 void windowClosed()
          Called after the info window is closed.
 void windowOpend()
          Called after the info window is displayed.
 void zoomed(int oldZoomLevel, int newZoomLevel)
          Called after the map zoom level changes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleMapsAdapter

public GoogleMapsAdapter()
Method Detail

allOverlaysRemoved

public void allOverlaysRemoved()
Description copied from interface: GoogleMapsListener
Called after all overlays are cleared from the map.

See Google Maps API documentation [Class Reference > GMap > Events > clearoverlays].

Specified by:
allOverlaysRemoved in interface GoogleMapsListener

clicked

public void clicked(Overlay overlay)
Description copied from interface: GoogleMapsListener
Called when the user clicks the overlay on the map.

See Google Maps API documentation [Class Reference > GMap > Events > click].

Specified by:
clicked in interface GoogleMapsListener
Parameters:
overlay - the clicked overlay

clicked

public void clicked(Point point)
Description copied from interface: GoogleMapsListener
Called when the user clicks the map.

See Google Maps API documentation [Class Reference > GMap > Events > click].

Specified by:
clicked in interface GoogleMapsListener
Parameters:
point - the clicked point

mapTypeChanged

public void mapTypeChanged()
Description copied from interface: GoogleMapsListener
Called after the map type (Map, Hybrid, or Satellite) changes.

See Google Maps API documentation [Class Reference > GMap > Events > maptypechanged].

Specified by:
mapTypeChanged in interface GoogleMapsListener

moved

public void moved()
Description copied from interface: GoogleMapsListener
Called when the map is moving.

This event is triggered continuously as the map is dragged.

See Google Maps API documentation [Class Reference > GMap > Events > move].

Specified by:
moved in interface GoogleMapsListener

moveEnded

public void moveEnded()
Description copied from interface: GoogleMapsListener
Called at the end of a discrete or continuous map movement.

This event is triggered once at the end of a continuous pan.

See Google Maps API documentation [Class Reference > GMap > Events > moveend].

Specified by:
moveEnded in interface GoogleMapsListener

moveStarted

public void moveStarted()
Description copied from interface: GoogleMapsListener
Called at the beginning of a continuous pan/drag movement.

This event is not triggered when the map moves discretely.

See Google Maps API documentation [Class Reference > GMap > Events > movestart].

Specified by:
moveStarted in interface GoogleMapsListener

overlayAdded

public void overlayAdded(Overlay overlay)
Description copied from interface: GoogleMapsListener
Called after an overlay is added to the map.

See Google Maps API documentation [Class Reference > GMap > Events > addoverlay].

Specified by:
overlayAdded in interface GoogleMapsListener
Parameters:
overlay - the added overlay

overlayRemoved

public void overlayRemoved(Overlay overlay)
Description copied from interface: GoogleMapsListener
Called after an overlay is removed from the map.

See Google Maps API documentation [Class Reference > GMap > Events > removeoverlay].

Specified by:
overlayRemoved in interface GoogleMapsListener
Parameters:
overlay - the removed overlay

windowClosed

public void windowClosed()
Description copied from interface: GoogleMapsListener
Called after the info window is closed.

See Google Maps API documentation [Class Reference > GMap > Events > infowindowclose].

Specified by:
windowClosed in interface GoogleMapsListener

windowOpend

public void windowOpend()
Description copied from interface: GoogleMapsListener
Called after the info window is displayed.

See Google Maps API documentation [Class Reference > GMap > Events > infowindowopen].

Specified by:
windowOpend in interface GoogleMapsListener

zoomed

public void zoomed(int oldZoomLevel,
                   int newZoomLevel)
Description copied from interface: GoogleMapsListener
Called after the map zoom level changes.

See Google Maps API documentation [Class Reference > GMap > Events > zoom].

Specified by:
zoomed in interface GoogleMapsListener
Parameters:
oldZoomLevel - the old zoom level
newZoomLevel - the new zoom level