Java com.google.gwt.maps.client.overlay Polygon fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.maps.client.overlay Polygon fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.maps.client.overlay Polygon.

The text is from its open source code.

Constructor

Polygon(LatLng[] points, String strokeColor, int strokeWeight, double strokeOpacity, String fillColor, double fillOpacity, PolygonOptions options)
Create a polygon from an array of points, specifying optional parameters.
Polygon(LatLng[] points, String strokeColor, int strokeWeight, double strokeOpacity, String fillColor, double fillOpacity)
Create a polygon from an array of points, specifying optional parameters.
Polygon(LatLng[] points)
Create a Polygon from an array of points.
Polygon(JavaScriptObject jsoPeer)
Create this polygon from an existing JavaScriptObject instance.

Method

voidaddPolygonCancelLineHandler(final PolygonCancelLineHandler handler)
This event is fired when the polygon is being edited and the edit is canceled.
voidaddPolygonClickHandler(final PolygonClickHandler handler)
This event is fired when the polygon is clicked.
voidaddPolygonEndLineHandler(final PolygonEndLineHandler handler)
This event is fired when the polygon is being edited and the edit is completed.
voidaddPolygonLineUpdatedHandler(final PolygonLineUpdatedHandler handler)
This event is fired when the polygon has a vertex inserted.
voidaddPolygonMouseOutHandler(final PolygonMouseOutHandler handler)
This event is fired when the mouse moves out of a polygon.
voidaddPolygonMouseOverHandler(final PolygonMouseOverHandler handler)
This event is fired when the mouse moves over a polygon.
voidaddPolygonRemoveHandler(final PolygonRemoveHandler handler)
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 .
PolygonfromEncoded(EncodedPolyline[] polylines, boolean fill, String color, double opacity, boolean outline)
Create a polygon from an array of polylines.
doublegetArea()
Returns the area (in square meters) of the polygon, assuming a spherical Earth.
LatLngBoundsgetBounds()
Returns the bounds for this polygon.
voidsetDrawingEnabled()
Allows a user to construct (or modify) a Polygon object by clicking on additional points on the map.
voidsetStrokeStyle(PolyStyleOptions style)
Changes the style of the polylgon outline.
voidsetVisible(boolean visible)
Show or hide the polygon.