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

This Handler is used for point edition its extends CollectionHandler



Public Properties
 PropertyDefined by
 Inheritedactive : Boolean
inheritDoc
AbstractEditHandler
 InheritedfeatureClickHandler : 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
 InheritedlayerToEdit : FeatureLayer
AbstractEditHandler
 Inheritedmap : Map
Map Settings
AbstractEditHandler
 InheritedtoggleHandlerActivity : Function
Getter and setter of the callback function used when the handler's activity changes
Handler
Protected Properties
 PropertyDefined by
 Inherited_drawContainer : Sprite = null
This sprite is used to draw temporaries features during dragging
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_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 : FeatureLayer = null
the layer concerned by the edition
AbstractEditHandler
Public Methods
 MethodDefined 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
 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
  
This function is launched when you double click on a vertice(Virtual or not) For the moment the vertice is deleted
EditPointHandler
 Inherited
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
 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: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