Packagecom.yworks.graph.input.snapLines
Interfacepublic interface INodeReshapeSnapResultProvider
Implementors NodeReshapeSnapResultProvider

Interface for an implementation which evaluates a list of given SnapLines for a node which is resized and adds a set of SnapResults for sizes to which this node can potentially snap.

See also

SnapLine
SnapResult


Public Methods
 MethodDefined By
  
collectSnapResults(context:GraphSnapContext, evt:CollectSnapResultEvent, position:uint, initialBounds:IRectangle, node:INode):void
Called when a node is dragged to add SnapResults for SnapLines or sizes to which this node can potentially snap during resizing.
INodeReshapeSnapResultProvider
Method Detail
collectSnapResults()method
public function collectSnapResults(context:GraphSnapContext, evt:CollectSnapResultEvent, position:uint, initialBounds:IRectangle, node:INode):void

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

Parameters

context:GraphSnapContext — The snap context which manages the snap lines and the settings.
 
evt:CollectSnapResultEvent — The event argument to obtain the context from and add the results to.
 
position:uint — The position (e.g. north or west) of the dragged handle. One of those defined in RectangleHandlePositions.
 
initialBounds:IRectangle — The original layout of the node
 
node:INode — The node that is being reshaped.

See also

com.yworks.canvas.input.IDragHandler.handleMove
SnapResult
SnapLine
HandlePositions
com.yworks.graph.model.INode.layout
RectangleHandlePositions