Packagetwaver.network.interaction
Classpublic class DefaultInteractionHandler
InheritanceDefaultInteractionHandler Inheritance BasicInteractionHandler Inheritance Object

This interaction is a simple, default network interaction handler. This handler support very basic keyboard and mouse operations such as "ctrl+" to select all elements, "del" to delete selected elements, double click to open/close group, drill-down subnetwork, open/close bundle links, etc.

Here is an example how to install interaction handlers on network canvas

	 network.interactionHandlers = new Collection([
	 	new SelectInteractionHandler(network),
	 	new EditInteractionHandler(network),
	 	new MoveInteractionHandler(network),
	 	new DefaultInteractionHandler(network),
	 	new MapFilterInteractionHandler(network),
	 ]);
	 

See also

twaver.Link
twaver.Group
twaver.SubNetwork


Protected Properties
 PropertyDefined By
 Inheritednetwork : Network
[read-only] Get network component of this interaction.
BasicInteractionHandler
Public Methods
 MethodDefined By
  
Create default interaction handler for specified network.
DefaultInteractionHandler
  
[override] Install listeners on this interaction.
DefaultInteractionHandler
  
[override] Uninstall listeners on this interaction.
DefaultInteractionHandler
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
Constructor Detail
DefaultInteractionHandler()Constructor
public function DefaultInteractionHandler(network:Network)

Create default interaction handler for specified network.

Parameters
network:Network — the network this handler will work on.
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.