org.gwtopenmaps.openlayers.client.control
Class DrawFeature
java.lang.Object
org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
org.gwtopenmaps.openlayers.client.control.Control
org.gwtopenmaps.openlayers.client.control.DrawFeature
public class DrawFeature
- extends Control
Don't be suprised by the following:
Upon activating the DrawFeature tool it creates an extra layer
that is used by the handler (the name of this layer reflects this).
(tested in OpenLayers 2.7)
- Author:
- Erdem Gunay, Edwin Commandeur - Atlis EJS
Method Summary |
Handler |
getHandler()
This method returns the Handler associated to the control. |
Methods inherited from class org.gwtopenmaps.openlayers.client.control.Control |
activate, addControlActivateListener, addControlDeactivateListener, deactivate, disable, enable, getControlId, getLayer, getMap, getZIndex, isActive, narrowToControl, setAutoActivate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DrawFeature
protected DrawFeature(JSObject element)
DrawFeature
public DrawFeature(Vector layer,
Handler handler)
- Parameters:
layer
- handler
- - a PointHandler, PathHandler or PolygonHandler
DrawFeature
public DrawFeature(Vector layer,
Handler handler,
DrawFeatureOptions options)
- Parameters:
layer
- handler
- - a PointHandler, PathHandler or PolygonHandleroptions
- - see DrawFeatureOptions
getHandler
public Handler getHandler()
- This method returns the Handler associated to the control. The CLASS_NAME
of the handler depends on the kind of control.
- Returns:
- Handler
Copyright © 2011 sourceforge. All Rights Reserved.