Link style (TL)

The links can be straight or have a specific shape with intermediate points. You can specify that the links be reshaped into an “orthogonal” form. You can set the link style globally, in which case all links have the same shape, or locally on each link, in which case different link shapes occur in the same drawing.

Global link style

To specify the global link style:
Use the method setGlobalLinkStyle:
treeLayout.setGlobalLinkStyle(ibm_ilog.graphlayout.tree.TreeLayout.ORTHOGONAL_STYLE); 
The valid values for setGlobalLinkStyle are:

Individual link style

All links have the same style of shape unless the global link style is MIXED_STYLE. Only when the global link style is set to MIXED_STYLE can each link have an individual link style.
A sample
graph with different link styles in each subtree
Different link styles mixed in the same drawing
To specify the style of an individual link:
treeLayout.setGlobalLinkStyle(ibm_ilog.graphlayout.tree.TreeLayout.MIXED_STYLE);
treeLayout.setLinkStyle(graph.children[2], ibm_ilog.graphlayout.tree.TreeLayout.ORTHOGONAL_STYLE);
The valid values for style are:
  • ibm_ilog.graphlayout.tree.TreeLayout.STRAIGHT_LINE_STYLE (the default)
  • ibm_ilog.graphlayout.tree.TreeLayout.NO_RESHAPE_STYLE
  • ibm_ilog.graphlayout.tree.TreeLayout.ORTHOGONAL_STYLE