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

Package | org.openscales.core.handler.feature.draw
Class | public class EditPointHandler
Inheritance | EditPointHandler AbstractEditHandler Handler

This Handler is used for point edition its extends CollectionHandler

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined by
--- | --- | ---
|  | active : Boolean inheritDoc | AbstractEditHandler
|  | featureClickHandler : FeatureClickHandler Use this function only this when you want to use the handler alone if you want to modify at the same time different type of geometries use the LayerEditionHandler | AbstractEditHandler
|  | layerToEdit : FeatureLayer | AbstractEditHandler
|  | map : Map Map Settings | AbstractEditHandler
|  | toggleHandlerActivity : Function Getter and setter of the callback function used when the handler's activity changes | Handler

Protected Properties
Hide Inherited Protected Properties
Show Inherited Protected Properties

| Property | Defined by
--- | --- | ---
|  | _drawContainer : Sprite = null This sprite is used to draw temporaries features during dragging | AbstractEditHandler
|  | _featureClickHandler : FeatureClickHandler = null his handler is used for differenciation of mouse actions(drag drop clikc double click) during the edition . | AbstractEditHandler
|  | _featureCurrentlyDrag : Feature = null The feature currently dragged | AbstractEditHandler
|  | _isUsedAlone : Boolean = true To specify that the edition Handler is used alone(PathHandler || PointHandler etc) or associated with other handlers in LayerEditionHandler | AbstractEditHandler
|  | _layerToEdit : FeatureLayer = null the layer concerned by the edition | AbstractEditHandler

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined by
--- | --- | ---
|  | EditPointHandler(map:Map = null, active:Boolean = false, layerToEdit:FeatureLayer = null, featureClickHandler:FeatureClickHandler = null, drawContainer:Sprite = null, isUsedAlone:Boolean = true) EditPointHandler This handler is used for edition on point such operation as dragging or deleting | EditPointHandler
|  | dragVerticeStart(vectorfeature:PointFeature):void This function is launched when you are dragging a vertice(Virtual or not) | EditPointHandler
|  | dragVerticeStop(vectorfeature:PointFeature):void This function is launched when you stop dragging a vertice(Virtual or not) | EditPointHandler
|  | editionModeStart():Boolean Start the edition Mode | EditPointHandler
|  | editionModeStop():Boolean Stop the edition Mode | AbstractEditHandler
|  | featureClick(event:FeatureEvent):void This function is launched when you click on a vertice(Virtual or not) for the moment nothing is done | AbstractEditHandler
|  | featureDoubleClick(event:FeatureEvent):void This function is launched when you double click on a vertice(Virtual or not) For the moment the vertice is deleted | EditPointHandler
|  | refreshEditedfeatures(event:MapEvent = null):void This function is used to start the edition of all vector features in a layer only use by LayerEditionHandler | AbstractEditHandler

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

Constructor detail

EditPointHandler | () | constructor

`public function EditPointHandler(map:Map = null, active:Boolean = false, layerToEdit:FeatureLayer = null, featureClickHandler:FeatureClickHandler = null, drawContainer:Sprite = null, isUsedAlone:Boolean = true)`

EditPointHandler This handler is used for edition on point such operation as dragging or deleting

Parameters

| `map:Map` (default = `null`)`` — object
| `active:Boolean` (default = `false`)`` — for handler activation
| `layerToEdit:FeatureLayer` (default = `null`)``
| `featureClickHandler:FeatureClickHandler` (default = `null`)`` — handler only use it when you want to use this handler alone
| `drawContainer:Sprite` (default = `null`)``
| `isUsedAlone:Boolean` (default = `true`)``

Method detail

dragVerticeStart | () | method

`public override function dragVerticeStart(vectorfeature:PointFeature):void`

This function is launched when you are dragging a vertice(Virtual or not)

Parameters

| `vectorfeature:PointFeature`

dragVerticeStop | () | method |

`public override function dragVerticeStop(vectorfeature:PointFeature):void`

This function is launched when you stop dragging a vertice(Virtual or not)

Parameters

| `vectorfeature:PointFeature`

editionModeStart | () | method |

`public override function editionModeStart():Boolean`

Start the edition Mode

Returns

| `Boolean`

featureDoubleClick | () | method |

`public override function featureDoubleClick(event:FeatureEvent):void`

This function is launched when you double click on a vertice(Virtual or not) For the moment the vertice is deleted

Parameters

| `event:FeatureEvent`