|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.mvc.MVCObject<DrawingManager>
com.google.gwt.maps.client.drawinglib.DrawingManager
public class DrawingManager
Allows users to draw markers, polygons, polylines, rectangles, and circles on the map. The DrawingManager's drawing mode defines the type of overlay that will be created by the user. Adds a control to the map, allowing the user to switch drawing mode. This class extends MVCObject.
See DrawingManager API Doc
Constructor Summary | |
---|---|
protected |
DrawingManager()
use newInstance(); |
Method Summary | |
---|---|
HandlerRegistration |
addCircleCompleteHandler(CircleCompleteMapHandler handler)
This event is fired when the user has finished drawing a circle. |
HandlerRegistration |
addMarkerCompleteHandler(MarkerCompleteMapHandler handler)
This event is fired when the user has finished drawing a marker. |
HandlerRegistration |
addOverlayCompleteHandler(OverlayCompleteMapHandler handler)
This event is fired when the user has finished drawing an overlay of any type. |
HandlerRegistration |
addPolygonCompleteHandler(PolygonCompleteMapHandler handler)
This event is fired when the user has finished drawing a polygon. |
HandlerRegistration |
addPolylineCompleteHandler(PolylineCompleteMapHandler handler)
This event is fired when the user has finished drawing a polyline. |
HandlerRegistration |
addRectangleCompleteHandler(RectangleCompleteMapHandler handler)
This event is fired when the user has finished drawing a rectangle. |
OverlayType |
getDrawingMode()
Returns the DrawingManager's drawing mode. |
MapWidget |
getMap()
Returns the Map to which the DrawingManager is attached, which is the Map on which the overlays created will be placed. |
static DrawingManager |
newInstance(DrawingManagerOptions options)
Creates a DrawingManager that allows users to draw overlays on the map, and switch between the type of overlay to be drawn with a drawing control. |
void |
setDrawingMode(OverlayType drawingMode)
Changes the DrawingManager's drawing mode, which defines the type of overlay to be added on the map. |
void |
setMap(MapWidget mapWidget)
Attaches the DrawingManager object to the specified Map. |
Methods inherited from class com.google.gwt.maps.client.mvc.MVCObject |
---|
bindTo, bindTo, bindTo, changed, createInstanceOfMVCObject, get, notify, set, setValues, unbind, unbindAll |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected DrawingManager()
Method Detail |
---|
public static final DrawingManager newInstance(DrawingManagerOptions options)
options
- public final OverlayType getDrawingMode()
public final void setDrawingMode(OverlayType drawingMode)
drawingMode
- public final void setMap(MapWidget mapWidget)
mapWidget
- public final MapWidget getMap()
public final HandlerRegistration addCircleCompleteHandler(CircleCompleteMapHandler handler)
handler
- public final HandlerRegistration addMarkerCompleteHandler(MarkerCompleteMapHandler handler)
handler
- public final HandlerRegistration addOverlayCompleteHandler(OverlayCompleteMapHandler handler)
handler
- public final HandlerRegistration addPolygonCompleteHandler(PolygonCompleteMapHandler handler)
handler
- public final HandlerRegistration addPolylineCompleteHandler(PolylineCompleteMapHandler handler)
handler
- public final HandlerRegistration addRectangleCompleteHandler(RectangleCompleteMapHandler handler)
handler
-
|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |