Packagecom.yworks.graph.input.snapLines
Interfacepublic interface INodeSnapResultProvider
Implementors NodeSnapResultProvider

Interface that is used by the GraphSnapContext for nodes to collect a number of SnapResults during the move/edit operation. This interface is queried from the ILookup of the INodes that are being moved during the edit.

See also

com.yworks.graph.input.snapLines.GraphSnapContext
SnapResult
ILookup
NodeDecorator.nodeSnapResultProviderDecorator


Public Methods
 MethodDefined By
  
Called when a node is dragged to add SnapResults for SnapLines to which this node can potentially snap.
INodeSnapResultProvider
Method Detail
collectSnapResults()method
public function collectSnapResults(context:GraphSnapContext, evt:CollectSnapResultEvent, suggestedLayout:IRectangle, node:INode):void

Called when a node is dragged to add SnapResults for SnapLines to which this node can potentially snap.

Parameters

context:GraphSnapContext — The snap context which manages the snap lines and the settings.
 
evt:CollectSnapResultEvent — The event argument to obtain the necessary information from and add results to.
 
suggestedLayout:IRectangle — The layout of the node if the node would not snap.
 
node:INode — The node that is being moved.

See also

IDragHandler.handleMove
SnapResult
SnapLine
INode.layout