Package | twaver.network.interaction |
Class | public class MoveInteractionHandler |
Inheritance | MoveInteractionHandler ![]() ![]() |
Here is an example how to install interaction handlers on network canvas
//create a magnifier interaction: network.interactionHandlers = new Collection([ new SelectInteractionHandler(network), new EditInteractionHandler(network), new MoveInteractionHandler(network), new DefaultInteractionHandler(network), ]);
Property | Defined By | ||
---|---|---|---|
lazyMode : Boolean
Whether enable lazy-movement mode for moving
element around on network canvas by mouse. | MoveInteractionHandler |
Method | Defined By | ||
---|---|---|---|
MoveInteractionHandler(network:Network, lazyMode:Boolean = false)
Constructor of this handler. | MoveInteractionHandler | ||
installListeners():void [override]
Install listeners on this interaction. | MoveInteractionHandler | ||
uninstallListeners():void [override]
Uninstall listeners on this interaction. | MoveInteractionHandler |
lazyMode | property |
lazyMode:Boolean
Whether enable lazy-movement mode for moving element around on network canvas by mouse. Default value is false.
public function get lazyMode():Boolean
public function set lazyMode(value:Boolean):void
MoveInteractionHandler | () | Constructor |
public function MoveInteractionHandler(network:Network, lazyMode:Boolean = false)
Constructor of this handler.
Parametersnetwork:Network — the network this handler work with.
| |
lazyMode:Boolean (default = false ) — whether enable lazy-movement mode for moving
element around on network canvas by mouse. Default value is false.
|
installListeners | () | method |
override public function installListeners():void
Install listeners on this interaction.
uninstallListeners | () | method |
override public function uninstallListeners():void
Uninstall listeners on this interaction.