jp.sf.mapswidgets
Interface GoogleMapsListener

All Superinterfaces:
java.util.EventListener, org.eclipse.swt.internal.SWTEventListener
All Known Implementing Classes:
GoogleMapsAdapter

public interface GoogleMapsListener
extends org.eclipse.swt.internal.SWTEventListener

Classes which implement this interface provide methods that deal with the events that are generated in a Google Maps control.

After creating an instance of a class that implements this interface it can be added to a control using the addGoogleMapsListener method and removed using the removeGoogleMapsListener method.

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

See Also:
GoogleMapsAdapter

Method Summary
 void allOverlaysRemoved()
          Called after all overlays are cleared from the map.
 void clicked(Overlay clicked)
          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 added)
          Called after an overlay is added to the map.
 void overlayRemoved(Overlay removed)
          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.
 

Method Detail

allOverlaysRemoved

void allOverlaysRemoved()
Called after all overlays are cleared from the map.

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


clicked

void clicked(Overlay clicked)
Called when the user clicks the overlay on the map.

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

Parameters:
clicked - the clicked overlay

clicked

void clicked(Point point)
Called when the user clicks the map.

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

Parameters:
point - the clicked point

mapTypeChanged

void mapTypeChanged()
Called after the map type (Map, Hybrid, or Satellite) changes.

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


moved

void moved()
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].


moveEnded

void moveEnded()
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].


moveStarted

void moveStarted()
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].


overlayAdded

void overlayAdded(Overlay added)
Called after an overlay is added to the map.

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

Parameters:
added - the added overlay

overlayRemoved

void overlayRemoved(Overlay removed)
Called after an overlay is removed from the map.

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

Parameters:
removed - the removed overlay

windowClosed

void windowClosed()
Called after the info window is closed.

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


windowOpend

void windowOpend()
Called after the info window is displayed.

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


zoomed

void zoomed(int oldZoomLevel,
            int newZoomLevel)
Called after the map zoom level changes.

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

Parameters:
oldZoomLevel - the old zoom level
newZoomLevel - the new zoom level