Modifier | Constructor and Description |
---|---|
protected |
Polygon()
use newInstance();
|
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addClickHandler(ClickMapHandler handler)
This event is fired when the DOM click event is fired on the Polygon.
|
HandlerRegistration |
addDblClickHandler(DblClickMapHandler handler)
This event is fired when the DOM dblclick event is fired on the Polygon.
|
HandlerRegistration |
addMouseDownHandler(MouseDownMapHandler handler)
This event is fired when the DOM mousedown event is fired on the Polygon.
|
HandlerRegistration |
addMouseMoveHandler(MouseMoveMapHandler handler)
This event is fired when the DOM mousemove event is fired on the Polygon.
|
HandlerRegistration |
addMouseOutMoveHandler(MouseOutMapHandler handler)
This event is fired on Polygon mouseout.
|
HandlerRegistration |
addMouseOverHandler(MouseOverMapHandler handler)
This event is fired on Polygon mouseover.
|
HandlerRegistration |
addMouseUpHandler(MouseUpMapHandler handler)
This event is fired when the DOM mouseup event is fired on the Polygon.
|
HandlerRegistration |
addRightClickHandler(RightClickMapHandler handler)
This event is fired when the Polygon is right-clicked on.
|
boolean |
getEditable()
Returns whether this shape can be edited by the user.
|
MapWidget |
getMap()
Returns the map on which this shape is attached.
|
MVCArray<LatLng> |
getPath()
Retrieves the first path.
|
MVCArray<MVCArray<LatLng>> |
getPaths()
Retrieves the paths for this polygon.
|
static Polygon |
newInstance(PolygonOptions options)
Create a polygon using the passed PolygonOptions, which specify the
polygon's path, the stroke style for the polygon's edges, and the fill
style for the polygon's interior regions.
|
void |
setEditable(boolean editable)
If set to true, the user can edit this shape by dragging the control
points shown at the vertices and on each segment.
|
void |
setMap(MapWidget mapWidget)
Renders this shape on the specified map.
|
void |
setOptions(PolygonOptions options)
set Options
|
void |
setPath(JsArray<LatLng> path)
Sets the first path.
|
void |
setPath(MVCArray<LatLng> path)
Sets the first path.
|
void |
setPaths(JsArray<LatLng> paths)
Sets the path for this polygon.
|
void |
setPaths(MVCArray<LatLng> paths)
Sets the path for this polygon.
|
void |
setPathss(JsArray<JsArray<LatLng>> paths)
Sets the path for this polygon.
|
void |
setPathss(MVCArray<MVCArray<LatLng>> paths)
Sets the path for this polygon.
|
bindTo, bindTo, bindTo, changed, createInstanceOfMVCObject, get, notify, set, setValues, unbind, unbindAll
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static final Polygon newInstance(PolygonOptions options)
options
- public final boolean getEditable()
public final MapWidget getMap()
public final void setEditable(boolean editable)
editable
- public final void setMap(MapWidget mapWidget)
mapWidget
- public final void setOptions(PolygonOptions options)
options
- public final void setPath(MVCArray<LatLng> path)
path
- public final void setPath(JsArray<LatLng> path)
path
- public final void setPaths(MVCArray<LatLng> paths)
paths
- public final void setPathss(MVCArray<MVCArray<LatLng>> paths)
paths
- public final void setPaths(JsArray<LatLng> paths)
paths
- public final void setPathss(JsArray<JsArray<LatLng>> paths)
paths
- public final HandlerRegistration addClickHandler(ClickMapHandler handler)
handler
- public final HandlerRegistration addDblClickHandler(DblClickMapHandler handler)
handler
- public final HandlerRegistration addMouseDownHandler(MouseDownMapHandler handler)
handler
- public final HandlerRegistration addMouseMoveHandler(MouseMoveMapHandler handler)
handler
- public final HandlerRegistration addMouseOutMoveHandler(MouseOutMapHandler handler)
handler
- public final HandlerRegistration addMouseOverHandler(MouseOverMapHandler handler)
handler
- public final HandlerRegistration addMouseUpHandler(MouseUpMapHandler handler)
handler
- public final HandlerRegistration addRightClickHandler(RightClickMapHandler handler)
handler
- Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.