Packagetwaver.network.interaction
Classpublic class MoveInteractionHandler
InheritanceMoveInteractionHandler Inheritance BasicInteractionHandler Inheritance Object

This interaction supports moving elements around on network canvas by mouse freely. Install this handler on network to get the ability to move selected elements freely by mouse on canvas.

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),
	 ]);
	 



Public Properties
 PropertyDefined By
  lazyMode : Boolean
Whether enable lazy-movement mode for moving element around on network canvas by mouse.
MoveInteractionHandler
Protected Properties
 PropertyDefined By
 Inheritednetwork : Network
[read-only] Get network component of this interaction.
BasicInteractionHandler
Public Methods
 MethodDefined By
  
MoveInteractionHandler(network:Network, lazyMode:Boolean = false)
Constructor of this handler.
MoveInteractionHandler
  
[override] Install listeners on this interaction.
MoveInteractionHandler
  
[override] Uninstall listeners on this interaction.
MoveInteractionHandler
Protected Methods
 MethodDefined By
 Inherited
dispatchEvent(kind:String, e:MouseEvent, element:IElement = null, resizeDirection:String = null, pointIndex:int = -1):void
Dispatch event to listeners.
BasicInteractionHandler
Property Detail
lazyModeproperty
lazyMode:Boolean

Whether enable lazy-movement mode for moving element around on network canvas by mouse. Default value is false.


Implementation
    public function get lazyMode():Boolean
    public function set lazyMode(value:Boolean):void
Constructor Detail
MoveInteractionHandler()Constructor
public function MoveInteractionHandler(network:Network, lazyMode:Boolean = false)

Constructor of this handler.

Parameters
network: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.
Method Detail
installListeners()method
override public function installListeners():void

Install listeners on this interaction.

uninstallListeners()method 
override public function uninstallListeners():void

Uninstall listeners on this interaction.