DroidDiagram Programmer's Guide
DiagramNode.attachTo Method (DiagramLink, AttachToLink, int)
See Also
 






Attaches a node to a segment or point of the specified link.

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

 Syntax

Java  Copy Code

public void attachTo (
    DiagramLink link,
    AttachToLink attType,
    int index
)

 Parameters

link

An DiagramLink to which to attach this node.

attType
A member of the AttachToLink enumeration specifying whether to attach the node to a segment or to a control point of the link.
index
An index of link's control point or segment, depending on the attType value.

 Remarks

This method attaches the node to a control point or segment of the specified link. If there isn't a Group instance already associated with the master item, one is created automatically by this method. The group is then accessible through the master's SubordinateGroup property, or this node's MasterGroup property.

The node is attached by calling the attachToLinkPoint or attachToLinkSegment methods of Group, depending on the value of the attType argument. The attached node then maintains its original offset from a link's point or segment when link's shape changes.

 See Also

attachTo Method Overload List
DiagramNode Members
DiagramNode Class
com.mindfusion.diagramming Namespace
detach Method