| Package | org.openscales.core.handler.feature |
| Class | public class FeatureClickHandler |
| Inheritance | FeatureClickHandler Handler Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | active : Boolean
Getter and setter of the boolean defining the activity of the handler
| Handler | |
| click : Function
click callback function
| FeatureClickHandler | ||
| doubleclick : Function
double click callback function
| FeatureClickHandler | ||
![]() | map : Map
Getter and setter of the map associated to the handler
| Handler | |
| startDrag : Function
drag callback function
| FeatureClickHandler | ||
| stopDrag : Function
drop callback function
| FeatureClickHandler | ||
![]() | toggleHandlerActivity : Function
Getter and setter of the callback function used when the handler's
activity changes
| Handler | |
| Method | Defined By | ||
|---|---|---|---|
FeatureClickHandler(map:Map = null, active:Boolean = false)
Constructor
| FeatureClickHandler | ||
addControledFeature(feature:Feature):void
Add an array of features in the feature click handler controled features
| FeatureClickHandler | ||
addControledFeatures(features:Array):void
Add a feature in the feature click handler controled features
| FeatureClickHandler | ||
dropMouseUp(evt:MouseEvent):void | FeatureClickHandler | ||
removeControledFeature(feature:Feature):void
This function is used for removing a feature
from the the feature click handler controled features
| FeatureClickHandler | ||
removeControledFeatures(features:Array = null):void
This function is used for removing an array of features
from the the feature click handler controled features
| FeatureClickHandler | ||
| Method | Defined By | ||
|---|---|---|---|
mouseDown(evt:FeatureEvent):void
The MouseDown Listener
| FeatureClickHandler | ||
mouseUp(evt:FeatureEvent):void
MouseUp Listener
| FeatureClickHandler | ||
registerListeners():void [override] | FeatureClickHandler | ||
unregisterListeners():void [override] | FeatureClickHandler | ||
| click | property |
click:Functionclick callback function
public function get click():Function public function set click(value:Function):void| doubleclick | property |
doubleclick:Functiondouble click callback function
public function get doubleclick():Function public function set doubleclick(value:Function):void| startDrag | property |
startDrag:Functiondrag callback function
public function get startDrag():Function public function set startDrag(value:Function):void| stopDrag | property |
stopDrag:Functiondrop callback function
public function get stopDrag():Function public function set stopDrag(value:Function):void| FeatureClickHandler | () | Constructor |
public function FeatureClickHandler(map:Map = null, active:Boolean = false)Constructor
Parametersmap:Map (default = null) — Map object
| |
active:Boolean (default = false) — to activate or deactivate the handler
|
| addControledFeature | () | method |
public function addControledFeature(feature:Feature):voidAdd an array of features in the feature click handler controled features
Parameters
feature:Feature — array of features to add
|
| addControledFeatures | () | method |
public function addControledFeatures(features:Array):voidAdd a feature in the feature click handler controled features
Parameters
features:Array — feature to add
|
| dropMouseUp | () | method |
public function dropMouseUp(evt:MouseEvent):voidParameters
evt:MouseEvent |
| mouseDown | () | method |
protected function mouseDown(evt:FeatureEvent):voidThe MouseDown Listener
Parameters
evt:FeatureEvent |
| mouseUp | () | method |
| registerListeners | () | method |
override protected function registerListeners():void| removeControledFeature | () | method |
public function removeControledFeature(feature:Feature):voidThis function is used for removing a feature from the the feature click handler controled features
Parameters
feature:Feature — feature to remove
|
| removeControledFeatures | () | method |
public function removeControledFeatures(features:Array = null):voidThis function is used for removing an array of features from the the feature click handler controled features
Parameters
features:Array (default = null) — array of features to remove
|
| unregisterListeners | () | method |
override protected function unregisterListeners():void