Download ILOG JViews 5.5 Graph Layout User's Manual

Transcript
TREE LAYOUT
layout.setRoot(rootNode);
layout.setFlowDirection(IlvDirection.Right);
layout.setGlobalAlignment(IlvTreeLayout.CENTER);
try {
IlvGraphLayoutReport layoutReport = layout.performLayout();
int code = layoutReport.getCode();
System.out.println("Layout completed (" +
layoutReport.codeToString(code) + ")");
}
catch (IlvGraphLayoutException e) {
System.err.println(e.getMessage());
}
Generic Features and Parameters
The IlvTreeLayout class supports the following generic features defined in the
IlvGraphLayout class:
◆ Allowed Time
◆ Layout of Connected Components
◆ Link Clipping
◆ Link Connection Box
◆ Percentage Completion Calculation
◆ Preserve Fixed Links
◆ Preserve Fixed Nodes
◆ Stop Immediately
The following paragraphs describe the particular way in which these features are used by
this subclass.
Allowed Time
The layout algorithm stops if the allowed time setting has elapsed. (For a description of this
layout parameter in the IlvGraphLayout class, see Allowed Time on page 22.) If the layout
stops early because the allowed time has elapsed, the nodes and links are not moved from
their positions before the layout call and the result code in the layout report is
IlvGraphLayoutReport.STOPPED_AND_INVALID.
ILOG JVIEWS GRAPH LAYOUT 5.5 — USER’S MANUAL
99
4. Layout Algorithms
◆ Save Parameters to Named Properties