DroidDiagram Programmer's Guide
DiagramLink.setAutoSnapToNode Method
See Also
 






Sets a value indicating whether a link end point should automatically snap to the nearest diagram node while the user moves the point's adjustment handle.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public void setAutoSnapToNode (
    boolean value
)

 Parameters

value
true to snap links to nearest node; otherwise, false.

 Remarks

Only nodes at a distance smaller than AutoSnapDistance are considered. A link does not snap to its current origin or destination nodes if that would create a self-loop. If there is an AnchorPattern assigned to a node, the link snaps to an anchor point instead of a border point.

 See Also

DiagramLink Members
DiagramLink Class
com.mindfusion.diagramming Namespace