org.gwtopenmaps.openlayers.client.control
Class DrawFeature

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
          extended by org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
              extended by org.gwtopenmaps.openlayers.client.control.Control
                  extended by 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

Nested Class Summary
static interface DrawFeature.FeatureAddedListener
           
 
Field Summary
 
Fields inherited from class org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
eventListeners
 
Constructor Summary
protected DrawFeature(JSObject element)
           
  DrawFeature(Vector layer, Handler handler)
           
  DrawFeature(Vector layer, Handler handler, DrawFeatureOptions options)
           
 
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 org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
getListeners, narrowToOpenLayersEObjectWrapper, removeListener
 
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
getClassName, getEvents, narrowToOpenLayersObjectWrapper
 
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
getJSObject, setJSObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 PolygonHandler
options - - see DrawFeatureOptions
Method Detail

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.