Package | twaver.network.interaction |
Interface | public interface IInteractionHandler |
Implementors | BasicInteractionHandler |
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), ]);
Method | Defined By | ||
---|---|---|---|
installListeners():void
This method is defined to install the necessary listeners
into this listener. | IInteractionHandler | ||
uninstallListeners():void
This method is defined to remove all installed listeners
from this listener which is installed by method
installListeners. | IInteractionHandler |
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
.