DroidDiagram Programmer's Guide
Diagram.setAutoAlignNodes Method
See Also
 






Sets whether nodes should automatically align to the borders of other nodes during user interaction.

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

 Syntax

Java  Copy Code

public void setAutoAlignNodes (
    boolean value
)

 Parameters

value

true if nodes should align, otherwise false. The default value is false.

 Remarks

When either the horizontal or vertical borders of the dragged node are within AutoAlignDistance from the respective borders of a nearby node, the dragged node snaps to a position where the borders are aligned. In addition, an alignment guide that indicates which borders are aligned is drawn using the pen specified via AlignmentGuidePen.

 See Also

Diagram Members
Diagram Class
com.mindfusion.diagramming Namespace
getAutoAlignNodes Method