Package | com.yworks.graph.input.snapLines |
Interface | public interface IBendSnapResultProvider |
GraphSnapContext
for IBend
s to
collect a number of SnapResult
s during the move/edit operation.
This interface is queried from the ILookup
of the IBend
s that are being moved during
the edit.
See also
Method | Defined By | ||
---|---|---|---|
collectSnapResults(context:GraphSnapContext, evt:CollectSnapResultEvent, suggestedLocation:IPoint, bend:IBend):void
Called when a node is dragged to add SnapResults for SnapLines to which
this bend can potentially snap. | IBendSnapResultProvider |
collectSnapResults | () | method |
public function collectSnapResults(context:GraphSnapContext, evt:CollectSnapResultEvent, suggestedLocation:IPoint, bend:IBend):void
Called when a node is dragged to add SnapResult
s for SnapLine
s to which
this bend 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.
| |
suggestedLocation:IPoint — The location of the bend if the bend would not snap.
| |
bend:IBend — The bend that is being moved.
|
See also