Example usage for com.google.gwt.maps.client.overlay Polygon addPolygonRemoveHandler

List of usage examples for com.google.gwt.maps.client.overlay Polygon addPolygonRemoveHandler

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.overlay Polygon addPolygonRemoveHandler.

Prototype

public void addPolygonRemoveHandler(final PolygonRemoveHandler handler) 

Source Link

Document

This event is fired when the polygon is removed from the map, using com.google.gwt.maps.client.MapWidget#removeOverlay or com.google.gwt.maps.client.MapWidget#clearOverlays .

Usage

From source file:com.claudiushauptmann.gwt.maps.gxt.client.core.PolygonMenuTipController.java

License:Apache License

/**
 * Creates a PolygonMenuTipController//w w w.j  a  va 2  s.c o  m
 * 
 * @param mapMenuController
 *            The controller of the map the polygon is attached to.
 * @param polygon
 *            The polygon to be observed.
 */
public PolygonMenuTipController(MapMenuController mapMenuController, Polygon polygon) {
    super(mapMenuController);

    this.polygon = polygon;

    polygonEventHandler = new PolygonEventHandler();
    polygon.addPolygonMouseOverHandler(polygonEventHandler);
    polygon.addPolygonMouseOutHandler(polygonEventHandler);
    polygon.addPolygonRemoveHandler(polygonEventHandler);
}