| Package | org.openscales.core.handler.feature.draw |
| Class | public class AbstractEditHandler |
| Inheritance | AbstractEditHandler Handler |
| Implements | IEditFeature |
| Subclasses | AbstractEditCollectionHandler, EditPointHandler |
| Property | Defined by | ||
|---|---|---|---|
| active : Boolean [write-only]
inheritDoc
| AbstractEditHandler | ||
| featureClickHandler : 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 | ||
| layerToEdit : FeatureLayer | AbstractEditHandler | ||
| map : Map
[write-only]
Map Settings
| AbstractEditHandler | ||
![]() | toggleHandlerActivity : Function
Getter and setter of the callback function used when the handler's
activity changes
| Handler | |
| 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
AbstractEditHandler(map:Map = null, active:Boolean = false, layerToEdit:FeatureLayer = null, featureClickHandler:FeatureClickHandler = null, drawContainer:Sprite = null, isUsedAlone:Boolean = true)
Constructor
| AbstractEditHandler | ||
|
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
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
| 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 | ||
| active | property |
active:Boolean [write-only]inheritDoc
Implementation public function set active(value:Boolean):void
| _drawContainer | property |
protected var _drawContainer:Sprite = nullThis sprite is used to draw temporaries features during dragging
| _featureClickHandler | property |
protected var _featureClickHandler:FeatureClickHandler = nullhis handler is used for differenciation of mouse actions(drag drop clikc double click) during the edition .
| featureClickHandler | property |
featureClickHandler: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
Implementation public function set featureClickHandler(value:FeatureClickHandler):void
| _featureCurrentlyDrag | property |
protected var _featureCurrentlyDrag:Feature = nullThe feature currently dragged
| _isUsedAlone | property |
protected var _isUsedAlone:Boolean = trueTo specify that the edition Handler is used alone(PathHandler || PointHandler etc) or associated with other handlers in LayerEditionHandler
| _layerToEdit | property |
protected var _layerToEdit:FeatureLayer = nullthe layer concerned by the edition
| layerToEdit | property |
layerToEdit:FeatureLayer [read-write]Implementation
public function get layerToEdit():FeatureLayer
public function set layerToEdit(value:FeatureLayer):void
| map | property |
| AbstractEditHandler | () | constructor |
public function AbstractEditHandler(map:Map = null, active:Boolean = false, layerToEdit:FeatureLayer = null, featureClickHandler:FeatureClickHandler = null, drawContainer:Sprite = null, isUsedAlone:Boolean = true)Constructor
Parametersmap:Map (default = null) — Map object
|
|
active:Boolean (default = false) — for handler activation
|
|
layerToEdit:FeatureLayer (default = null) — the layer concerned by the edition
|
|
featureClickHandler:FeatureClickHandler (default = null) — This handler is used for differenciation of mouse actions
|
|
drawContainer:Sprite (default = null) — This sprite is used to draw temporaries features during dragging
|
|
isUsedAlone:Boolean (default = true) |
| dragVerticeStart | () | method |
public function dragVerticeStart(vectorfeature:PointFeature):voidThis function is launched when you are dragging a vertice(Virtual or not)
Parametersvectorfeature:PointFeature |
| dragVerticeStop | () | method |
public function dragVerticeStop(vectorfeature:PointFeature):voidThis function is launched when you stop dragging a vertice(Virtual or not)
Parametersvectorfeature:PointFeature |
| editionModeStart | () | method |
public function editionModeStart():BooleanStart the edition Mode
ReturnsBoolean |
| editionModeStop | () | method |
public function editionModeStop():BooleanStop the edition Mode
ReturnsBoolean |
| featureClick | () | method |
public function featureClick(event:FeatureEvent):voidThis function is launched when you click on a vertice(Virtual or not) for the moment nothing is done
Parametersevent:FeatureEvent |
| featureDoubleClick | () | method |
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
Parametersevent:FeatureEvent |
| refreshEditedfeatures | () | method |
public function refreshEditedfeatures(event:MapEvent = null):voidThis function is used to start the edition of all vector features in a layer only use by LayerEditionHandler
Parametersevent:MapEvent (default = null) |