Packageorg.openscales.core.handler.feature.draw
Classpublic class EditLabelHandler
InheritanceEditLabelHandler Inheritance AbstractEditHandler Inheritance Handler Inheritance Object

This handler is used for label edition



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
  
EditLabelHandler(map:Map = null, active:Boolean = false, layerToEdit:VectorLayer = null, featureClickHandler:FeatureClickHandler = null, drawContainer:Sprite = null, isUsedAlone:Boolean = true, featuresToEdit:Vector.<Feature> = null)
EditLabelHandler This handler is used for edition on selected label such operation as modifying, dragging or deleting
EditLabelHandler
 Inherited
createEditionVertices(vectorfeature:Feature, collection:ICollection = null, arrayToFill:Vector.<Feature> = null):void
create edition vertice(Virtual) only for edition feature
AbstractEditHandler
  
dragLabelStart(feature:Feature):void
Call on starting a selected label drag
EditLabelHandler
  
dragLabelStop(feature:Feature):void
Call on stopping a selected label drag
EditLabelHandler
 Inherited
dragVerticeStart(vectorfeature:PointFeature):void
This function is launched when you are dragging a vertice(Virtual or not)
AbstractEditHandler
 Inherited
dragVerticeStop(vectorfeature:PointFeature):void
This function is launched when you stop dragging a vertice(Virtual or not)
AbstractEditHandler
 Inherited
Start the edition Mode
AbstractEditHandler
 Inherited
editionModeStop():Boolean
Stop the edition Mode
AbstractEditHandler
  
[override] This function is launched when you click on a vertice(Virtual or not) for the moment nothing is done
EditLabelHandler
  
[override] This function is launched when you double click on a vertice(Virtual or not) For the moment the vertice is deleted
EditLabelHandler
 Inherited
findVirtualVerticeParent(virtualVertice:PointFeature, arrayTosearch:Vector.<Feature> = null):Feature
This function is abble to find a virtual vertice parent
AbstractEditHandler
 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
  
updateLabel(str:String):void
Callback
EditLabelHandler
Constructor Detail
EditLabelHandler()Constructor
public function EditLabelHandler(map:Map = null, active:Boolean = false, layerToEdit:VectorLayer = null, featureClickHandler:FeatureClickHandler = null, drawContainer:Sprite = null, isUsedAlone:Boolean = true, featuresToEdit:Vector.<Feature> = null)

EditLabelHandler This handler is used for edition on selected label such operation as modifying, dragging or deleting

Parameters
map:Map (default = null)
 
active:Boolean (default = false)
 
layerToEdit:VectorLayer (default = null)
 
featureClickHandler:FeatureClickHandler (default = null)
 
drawContainer:Sprite (default = null)
 
isUsedAlone:Boolean (default = true)
 
featuresToEdit:Vector.<Feature> (default = null)
Method Detail
dragLabelStart()method
public function dragLabelStart(feature:Feature):void

Call on starting a selected label drag

Parameters

feature:Feature

dragLabelStop()method 
public function dragLabelStop(feature:Feature):void

Call on stopping a selected label drag

Parameters

feature:Feature

featureClick()method 
override public function featureClick(event:FeatureEvent):void

This function is launched when you click on a vertice(Virtual or not) for the moment nothing is done

Parameters

event:FeatureEvent

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

updateLabel()method 
protected function updateLabel(str:String):void

Callback

Parameters

str:String