Sets whether nodes should automatically align to the borders of other nodes during user interaction.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java
![]() |
---|
public void setAutoAlignNodes ( |
true if nodes should align, otherwise false. The default value is false.
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.