Packagetwaver.network.interaction
Interfacepublic interface IInteractionHandler
Implementors BasicInteractionHandler

This interace defines the interaction handler for network canvas. Interaction handler is an object wrapps the user operation and network response on network canvas. Keyboard and mouse operations can be listened by this handler and the listener will perform property behaviour to that operation. For example, you can create an interaction to move selected elements to left by pressing left arrow key.

TWaver Flex defines and installs may predefined interactions to support the default canvas operation. For example, "ctrl+a" to select all elements, "del" to delete selected elements, double click to open/close group and link bundle, double click to enter/out a subnetwork, etc. These operations are all wrapped by interaction handlers and you can install by one or by a set.

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



Public Methods
 MethodDefined By
  
This method is defined to install the necessary listeners into this listener.
IInteractionHandler
  
This method is defined to remove all installed listeners from this listener which is installed by method installListeners.
IInteractionHandler
Method Detail
installListeners()method
public function installListeners():void

This method is defined to install the necessary listeners into this listener. For example keyboard listeners, mouse listeners etc.

uninstallListeners()method 
public function uninstallListeners():void

This method is defined to remove all installed listeners from this listener which is installed by method installListeners.