| Package | com.yworks.graph.input.snapLines |
| Interface | public interface INodeReshapeSnapResultProvider |
| Implementors | NodeReshapeSnapResultProvider |
SnapLines for a node
which is resized and adds a set of SnapResults 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 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