DroidDiagram Programmer's Guide
Factory.createDiagramLink Method (ShapeNode, int, ShapeNode, int)
See Also
 






Creates a new DiagramLink instance between the specified nodes and adds it to the Links collection of the underlying diagram.

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

 Syntax

Java  Copy Code

public DiagramLink createDiagramLink (
    ShapeNode origin,
    int originAnchor,
    ShapeNode destination,
    int destAnchor
)

 Parameters

origin

The origin node.

originAnchor

The index of an anchor point within the origin node's AnchorPattern.

destination

The destination node.

destAnchor

The index of an anchor point within the destination node's AnchorPattern.

 Return Value

The newly created DiagramLink instance.

 Remarks

The method creates a link connecting the shape nodes specified by origin and destination. For further customization of the link, use the methods of the DiagramLink class.

 See Also

createDiagramLink Method Overload List
Factory Members
Factory Class
com.mindfusion.diagramming Namespace