DroidDiagram Programmer's Guide
Diagram.setAutoAlignDistance Method
See Also
 






Sets the maximal horizontal or vertical distance at which a node aligns to the borders of other nodes.

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

 Syntax

Java  Copy Code

public void setAutoAlignDistance (
    float value
)

 Parameters

value

A float value specifying the maximal distance. The default value is 3.

 Remarks

To enable node alignment, set AutoAlignNodes to true. When either the horizontal or vertical borders of the dragged node are within the specified distance from the respective borders of a nearby node, the dragged node snaps to a position where the borders are aligned.

 See Also

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