| Package | org.openscales.core.handler.feature.draw |
| Class | public class EditLabelHandler |
| Inheritance | EditLabelHandler AbstractEditHandler Handler Object |
| Method | Defined 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 | ||
![]() | 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 | ||
![]() | dragVerticeStart(vectorfeature:PointFeature):void
This function is launched when you are dragging a vertice(Virtual or not)
| AbstractEditHandler | |
![]() | dragVerticeStop(vectorfeature:PointFeature):void
This function is launched when you stop dragging a vertice(Virtual or not)
| AbstractEditHandler | |
![]() | editionModeStart():Boolean
Start the edition Mode
| AbstractEditHandler | |
![]() | editionModeStop():Boolean
Stop the edition Mode
| AbstractEditHandler | |
featureClick(event:FeatureEvent):void [override]
This function is launched when you click on a vertice(Virtual or not)
for the moment nothing is done
| EditLabelHandler | ||
featureDoubleClick(event:FeatureEvent):void [override]
This function is launched when you double click on a vertice(Virtual or not)
For the moment the vertice is deleted
| EditLabelHandler | ||
![]() | findVirtualVerticeParent(virtualVertice:PointFeature, arrayTosearch:Vector.<Feature> = null):Feature
This function is abble to find a virtual vertice parent
| AbstractEditHandler | |
![]() | 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 | |
| Method | Defined By | ||
|---|---|---|---|
![]() | registerListeners():void
Add the listeners to the associated map
| Handler | |
![]() | unregisterListeners():void
Remove the listeners to the associated map
| Handler | |
updateLabel(str:String):void
Callback
| EditLabelHandler | ||
| 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
Parametersmap: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) |
| dragLabelStart | () | method |
public function dragLabelStart(feature:Feature):voidCall on starting a selected label drag
Parameters
feature:Feature |
| dragLabelStop | () | method |
public function dragLabelStop(feature:Feature):voidCall on stopping a selected label drag
Parameters
feature:Feature |
| featureClick | () | method |
override public function featureClick(event:FeatureEvent):voidThis 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):voidThis 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):voidCallback
Parameters
str:String |