Package | com.yworks.graph.input.snapLines |
Interface | public interface INodeReshapeSnapResultProvider |
Implementors | NodeReshapeSnapResultProvider |
SnapLine
s for a node
which is resized and adds a set of SnapResult
s for sizes to which this node can potentially snap.
See also
Method | Defined 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 |
collectSnapResults | () | method |
public function collectSnapResults(context:GraphSnapContext, evt:CollectSnapResultEvent, position:uint, initialBounds:IRectangle, node:INode):void
Called when a node is dragged to add SnapResult
s for SnapLine
s 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