Packagetwaver.network.interaction
Classpublic class EditInteractionHandler
InheritanceEditInteractionHandler Inheritance BasicInteractionHandler Inheritance Object

This interaction used to edit simple properties for some elements. This interaction support resizing element size, changing the control point of shape link and shape node, 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.Node
twaver.ShapeLink
twaver.ShapeNode


Public Properties
 PropertyDefined By
  lazyMode : Boolean
Get the value whether use lazy-move mode for moving elements on network canvas.
EditInteractionHandler
Protected Properties
 PropertyDefined By
 Inheritednetwork : Network
[read-only] Get network component of this interaction.
BasicInteractionHandler
Public Methods
 MethodDefined By
  
EditInteractionHandler(network:Network, lazyMode:Boolean = false)
Create edit interaction handler for specified network.
EditInteractionHandler
  
[override] Install listeners on this interaction.
EditInteractionHandler
  
[override] Uninstall listeners on this interaction.
EditInteractionHandler
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

Get the value whether use lazy-move mode for moving elements on network canvas.


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

Create edit interaction handler for specified network.

Parameters
network:Network — the network this handler will work with.
 
lazyMode:Boolean (default = false) — whether use lazy-move mode for moving elements on network canvas. 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.