Example usage for Java com.google.gwt.maps.client.overlay Polygon fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
void | addPolygonCancelLineHandler(final PolygonCancelLineHandler handler) This event is fired when the polygon is being edited and the edit is canceled. |
void | addPolygonClickHandler(final PolygonClickHandler handler) This event is fired when the polygon is clicked. |
void | addPolygonEndLineHandler(final PolygonEndLineHandler handler) This event is fired when the polygon is being edited and the edit is completed. |
void | addPolygonLineUpdatedHandler(final PolygonLineUpdatedHandler handler) This event is fired when the polygon has a vertex inserted. |
void | addPolygonMouseOutHandler(final PolygonMouseOutHandler handler) This event is fired when the mouse moves out of a polygon. |
void | addPolygonMouseOverHandler(final PolygonMouseOverHandler handler) This event is fired when the mouse moves over a polygon. |
void | addPolygonRemoveHandler(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 . |
Polygon | fromEncoded(EncodedPolyline[] polylines, boolean fill, String color, double opacity, boolean outline) Create a polygon from an array of polylines. |
double | getArea() Returns the area (in square meters) of the polygon, assuming a spherical Earth. |
LatLngBounds | getBounds() Returns the bounds for this polygon. |
void | setDrawingEnabled() Allows a user to construct (or modify) a Polygon object by clicking on additional points on the map. |
void | setStrokeStyle(PolyStyleOptions style) Changes the style of the polylgon outline. |
void | setVisible(boolean visible) Show or hide the polygon. |