API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class AbstractDrawHandler

Package | org.openscales.core.handler.feature.draw
Class | public class AbstractDrawHandler
Inheritance | AbstractDrawHandler Handler
Subclasses | DrawMultiHandler, DrawPathHandler, DrawPointHandler, DrawPolygonHandler

Handler base class for Drawing Handler

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined by
--- | --- | ---
|  | active : Boolean Getter and setter of the boolean defining the activity of the handler | Handler
|  | drawLayer : FeatureLayer The layer concerned by the drawing Operation | AbstractDrawHandler
|  | map : Map [write-only] | AbstractDrawHandler
|  | toggleHandlerActivity : Function Getter and setter of the callback function used when the handler's activity changes | Handler

Public Methods

| Method | Defined by
--- | --- | ---
|  | AbstractDrawHandler(map:Map = null, active:Boolean = false, drawLayer:FeatureLayer = null) Constructor | AbstractDrawHandler

Protected Methods
Hide Inherited Protected Methods
Show Inherited Protected Methods

| Method | Defined by
--- | --- | ---
|  | registerListeners():void Add the listeners to the associated map | Handler
|  | unregisterListeners():void Remove the listeners to the associated map | Handler

Property detail

drawLayer | property

`drawLayer:FeatureLayer` [read-write]

The layer concerned by the drawing Operation

Implementation
`public function get drawLayer():FeatureLayer`
`public function set drawLayer(value:FeatureLayer):void`

map | property |

`map:Map` [write-only]Implementation
`public function set map(value:Map):void`
Constructor detail

AbstractDrawHandler | () | constructor

`public function AbstractDrawHandler(map:Map = null, active:Boolean = false, drawLayer:FeatureLayer = null)`

Constructor

Parameters

| `map:Map` (default = `null`)`` — Map Object
| `active:Boolean` (default = `false`)`` — for handler activation
| `drawLayer:FeatureLayer` (default = `null`)`` — the layer concerned by the drawing operation Abstract class never use this constructor