Connector Algorithm
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
The connector (conn) algorithm lays out and routes connecting lines, arrows, and shapes between layout nodes.
Parameters
Parameter |
Values |
Description |
---|---|---|
srcNode |
The name of the preceding or parent node. |
Specifies the name of the layout node from which to start the connection. This value is optional. |
dstNode |
The name of the following or parent’s child node. |
Specifies the name of the layout node from which to end the connection. This value is optional. |
bgPts |
A comma-delimited list that can include the following values:
|
Specifies all points on the shape at which the connector may begin. The default is bCtr, midL, midR, tCtr. |
endPts |
|
Specifies all points on the shape at which the connector may end. The default is bCtr, midL, midR, tCtr. |
bendPt |
|
Specifies the bend point. |
connRout |
|
Specifies whether the connector is drawn as a single straight line, orthogonal lines with a single bend, or a curve that uses the diam constraint. |
begSty |
|
Specifies whether the beginning of the connector has an arrowhead. |
endSty |
|
Specifies whether the end of the connector has an arrowhead. |
dim |
|
Indicates that the connector should use a 1-D line or a 2-D object that has width. |
alignTx |
|
Specifies whether the text is aligned. |
horzAlign |
|
Aligns all the child nodes in the space reserved for the parent node and adjusts child positions along the x-axis. |
vertAlign |
|
Aligns all the child nodes in the space reserved for the parent node and adjusts child positions along the y-axis. |
Constraints
Constraint |
Default value |
Description |
---|---|---|
w |
100 |
Specifies the width of the bounding box for a node. |
h |
100 |
Specifies the height of the bounding box for a node. |
connDist |
Specifies the distance between connectors. This constraint is intended for use with operator constraints, and it overrides values specified in the layout definition part. |
|
stemThick |
h * .6 |
Specifies the thickness of the arrow shaft. |
begMarg |
3.175 |
As a constraint, specifies the initial beginning margin value; as a rule, specifies when the algorithm decreases the padding. It also decreases the padding when the connector bends. |
endMarg |
3.175 |
As a constraint, specifies the initial ending margin value; as a rule, specifies when the algorithm decreases the padding. It also decreases the padding when the connector bends. |
begPad |
connDist * .22 |
Specifies the distance between the edge of the destination node and the connector shape. |
endPad |
connDist * .25 |
Specifies the distance between the edge of the destination node and the connector shape. |
bendDist |
connDist * .5 |
Specifies the distance from the start of the connector to a bend in the connector. |
hArH |
h * 1 |
Specifies the height of the arrowhead portion of the connector. |
wArH |
h * .5 |
Specifies the width of the arrowhead portion of the connector. |
diam |
connDist * 1 |
Specifies the curvature of a curved connector. |