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

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

Introduction

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

Prototype

public void addPolygonMouseOverHandler(final PolygonMouseOverHandler handler) 

Source Link

Document

This event is fired when the mouse moves over a polygon.

Usage

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

License:Apache License

/**
 * Creates a PolygonMenuTipController/*  www. j  a  v  a 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);
}