Recursive layout

JViews Graph Layout for Eclipse supports GEF nested graphs, that is, it can render graphs containing nodes that are graphs.
Important
Important
The GMF compartments are partially supported by JViews Graph Layout for Eclipse; recursive layouts and intergraph links are not yet operational with GMF. The Recursive mode of the Hierarchical layouts section is only applicable to GEF users.
Label layout
If the recursive layout mode is enabled, the hierarchical layout can also place the node and link labels. This is useful, because placing labels after a recursive layout may change the bounds of subgraphs again, and hence would require the hierarchical layout to rerun. Therefore, an annealing label layout is integrated into the hierarchical layout which is executed during the recursive layout mode.I
A graph that is a node in another graph is called a subgraph. Links that connect nodes of different subgraphs are called intergraph links. In Recursive hierarchical layout on nested graph with polyline link style, all red links are intergraph links and all black links are normal links. This is explained in detail in Nested layouts.
The hierarchical layout can treat a nested graph at once, placing all nested nodes and routing all links including the intergraph links. It can even place the labels in the nested graph.
To enable the recursive mode:
In Java™
Use this method:
void setRecursiveLayoutMode(boolean enable);
and call performLayout with the third parameter set to true in the following way:
layout.performLayout(force, redraw, true);

Label layout

If the recursive layout mode is enabled, the hierarchical layout can also place the node and link labels. This is useful, because placing labels after a recursive layout may change the bounds of subgraphs again, and hence would require the hierarchical layout to rerun. Therefore, an annealing label layout is integrated into the hierarchical layout which is executed during the recursive layout mode.
When the recursive layout mode is used, the label layout is automatically used. It is recommended to keep it enabled if nodes or links in subgraphs have labels. In can be disabled if there are no labels.
To disable the label layout:
In Java
layout.setLabelLayoutEnabledDuringRecursiveLayoutMode(false);
For more details on how to use the IlvAnnealingLabelLayout see Annealing label layout. For more details on how to use the IlvRecursiveLayout see Recursive layout.