DroidDiagram Programmer's Guide
DiagramNode.attachTo Method (DiagramNode, float, float, float, float)
See Also
 






Attaches a node to another node, so that the attached node will always cover a proportional part of the master node, specified in percents.

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

 Syntax

Java  Copy Code

public void attachTo (
    DiagramNode node,
    float percentX1,
    float percentY1,
    float percentX2,
    float percentY2
)

 Parameters

node

A DiagramNode to which to attach this node.

percentX1

A float percent value specifying to what X position in the master node to attach the left side of this node.

percentY1

A float percent value specifying to what Y position in the master node to attach the top side of this node.

percentX2

A float percent value specifying to what X position in the master node to attach the right side of this node.

percentY2

A float percent value specifying to what Y position in the master node to attach the bottom side of this node.

 See Also

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