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

Package | org.openscales.core.handler.feature.draw
Class | public class DrawPointHandler
Inheritance | DrawPointHandler AbstractDrawHandler Handler

Handler to draw points.

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 | AbstractDrawHandler
|  | toggleHandlerActivity : Function Getter and setter of the callback function used when the handler's activity changes | Handler

Public Methods

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

Protected Methods

| Method | Defined by
--- | --- | ---
|  | drawPoint(event:MouseEvent):void Create a point and draw it | DrawPointHandler
|  | registerListeners():void | DrawPointHandler
|  | unregisterListeners():void | DrawPointHandler

Constructor detail

DrawPointHandler | () | constructor

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

| `map:Map` (default = `null`)``
| `active:Boolean` (default = `false`)``
| `drawLayer:FeatureLayer` (default = `null`)``

Method detail

drawPoint | () | method

`protected function drawPoint(event:MouseEvent):void`

Create a point and draw it

Parameters

| `event:MouseEvent`

registerListeners | () | method |

`protected override function registerListeners():void`

unregisterListeners | () | method |

`protected override function unregisterListeners():void`