ibm_ilog.graphlayout.ISubgraphCorrection
Object » ibm_ilog.graphlayout.ISubgraphCorrection
dojo.require("ibm_ilog.graphlayout.ISubgraphCorrection");
An interface used to define corrections of a subgraph after the layout of the subgraph was performed.
Method Summary
- correct(subgraph, layout, boundingBox, redraw) Allows you to correct the subgraph after the nodes and links of the subgraph were laid out.
Methods
Allows you to correct the subgraph after the nodes and links of the
subgraph were laid out.
This is called by the Recursive Layout (see
RecursiveLayout
) immediately after the layout of the subgraph
has finished. Usually, a correction of the position of the subgraph
can be done; therefore the former bounding box of the subgraph is
passed.
The former bounding box is calculated by the parent graph model of the graph model attached to the input layout. Depending on the coordinates mode of that graph model, the bounding box is either given in view coordinates or in manager coordinates.
Parameter | Type | Description |
---|---|---|
subgraph | Object | The subgraph that has been laid out. |
layout | ibm_ilog.graphlayout.GraphLayout | The layout that has been performed on the subgraph. |
boundingBox | Rectangle | The former bounding box of the subgraph at the point in time before the layout. |
redraw | Boolean | The redraw flag passed to the layout. |