Packageorg.openscales.core.handler.feature.draw
Classpublic class EditPointHandler
InheritanceEditPointHandler Inheritance AbstractEditHandler Inheritance Handler Inheritance Object

This Handler is used for point edition its extends CollectionHandler



Public Properties
 PropertyDefined By
 Inheritedactive : Boolean
[override] inheritDoc
AbstractEditHandler
 InheritedfeatureClickHandler : FeatureClickHandler
[write-only] 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
 InheritedfeaturesToEdit : Vector.<Feature>
AbstractEditHandler
 InheritedlayerToEdit : VectorLayer
AbstractEditHandler
 Inheritedmap : Map
[override] Map Settings
AbstractEditHandler
 InheritedtoggleHandlerActivity : Function
Getter and setter of the callback function used when the handler's activity changes
Handler
 InheritedvirtualStyle : Style
AbstractEditHandler
Protected Properties
 PropertyDefined By
 Inherited_drawContainer : Sprite = null
This sprite is used to draw temporaries features during dragging
AbstractEditHandler
 Inherited_editionFeatureArray : Vector.<Feature>
The edition features array It contains all virtual vertice used for edition and their parents egg: A line contains at its first column the virtual vertice and at its' second column the parent of the virtual vertice
AbstractEditHandler
 Inherited_featureClickHandler : FeatureClickHandler = null
his handler is used for differenciation of mouse actions(drag drop clikc double click) during the edition .
AbstractEditHandler
 Inherited_featureCurrentlyDrag : Feature = null
The feature currently dragged
AbstractEditHandler
 Inherited_featuresToEdit : Vector.<Feature> = null
AbstractEditHandler
 Inherited_isUsedAlone : Boolean = true
To specify that the edition Handler is used alone(PathHandler || PointHandler etc) or associated with other handlers in LayerEditionHandler
AbstractEditHandler
 Inherited_layerToEdit : VectorLayer = null
the layer concerned by the edition
AbstractEditHandler
 Inherited_virtualStyle : Style
AbstractEditHandler
Public Methods
 MethodDefined By
  
EditPointHandler(map:Map = null, active:Boolean = false, layerToEdit:VectorLayer = null, featureClickHandler:FeatureClickHandler = null, drawContainer:Sprite = null, isUsedAlone:Boolean = true, featuresToEdit:Vector.<Feature> = null)
EditPointHandler This handler is used for edition on selected point such operation as dragging or deleting
EditPointHandler
 Inherited
createEditionVertices(vectorfeature:Feature, collection:ICollection = null, arrayToFill:Vector.<Feature> = null):void
create edition vertice(Virtual) only for edition feature
AbstractEditHandler
  
dragVerticeStart(vectorfeature:PointFeature):void
[override] This function is launched when you are dragging a vertice(Virtual or not)
EditPointHandler
  
dragVerticeStop(vectorfeature:PointFeature):void
[override] This function is launched when you stop dragging a vertice(Virtual or not)
EditPointHandler
  
[override] Start the edition Mode
EditPointHandler
 Inherited
editionModeStop():Boolean
Stop the edition Mode
AbstractEditHandler
 Inherited
This function is launched when you click on a vertice(Virtual or not) for the moment nothing is done
AbstractEditHandler
  
[override] This function is launched when you double click on a vertice(Virtual or not) For the moment the vertice is deleted
EditPointHandler
 Inherited
findVirtualVerticeParent(virtualVertice:PointFeature, arrayTosearch:Vector.<Feature> = null):Feature
This function is abble to find a virtual vertice parent
AbstractEditHandler
  
refreshEditedfeatures(event:MapEvent = null):void
[override] This function is used to start the edition of all vector features in a layer only use by LayerEditionHandler
EditPointHandler
Protected Methods
 MethodDefined By
 Inherited
Add the listeners to the associated map
Handler
 Inherited
Remove the listeners to the associated map
Handler
Constructor Detail
EditPointHandler()Constructor
public function EditPointHandler(map:Map = null, active:Boolean = false, layerToEdit:VectorLayer = null, featureClickHandler:FeatureClickHandler = null, drawContainer:Sprite = null, isUsedAlone:Boolean = true, featuresToEdit:Vector.<Feature> = null)

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

Parameters
map:Map (default = null) — object
 
active:Boolean (default = false) — for handler activation
 
layerToEdit:VectorLayer (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)
 
featuresToEdit:Vector.<Feature> (default = null)
Method Detail
dragVerticeStart()method
override public function dragVerticeStart(vectorfeature:PointFeature):void

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

Parameters

vectorfeature:PointFeature

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

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

Parameters

vectorfeature:PointFeature

editionModeStart()method 
override public function editionModeStart():Boolean

Start the edition Mode

Returns
Boolean
featureDoubleClick()method 
override public 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

refreshEditedfeatures()method 
override public function refreshEditedfeatures(event:MapEvent = null):void

This function is used to start the edition of all vector features in a layer only use by LayerEditionHandler

Parameters

event:MapEvent (default = null)