| Advanced Features > Nested Managers and Nested Graphers > Nested Graphers > Collapsed Grapher and Intergraph Links |
Collapsed Grapher and Intergraph Links |
INDEX
PREVIOUS
NEXT
|
When a grapher is collapsed, the graphic objects that it contains are no longer visible on the screen. The nodes that are the destination and origin of an intergraph link are not visible on the screen, and thus such intergraph links cannot visually point to their end nodes. These intergraph links will point to the collapsed representation of the grapher on the screen.
Here is an example of intergraph links in a grapher that is expanded (Figure 1.10) and collapsed (Figure 1.11):
Although the links point visually to the collapsed representation of the manager once the manager is collapsed, the real origin and destination of the links do not change. The methods getFrom and getTo of the link (ilog.views.IlvLinkImage) still return the same object. Only the graphical representation changes in this case. The link visually points to the first non collapsed parent manager.
You could consider that the methods getFrom and getTo of the link return the real end nodes of the link. The nodes that appear visually as end nodes on the screen can also be obtained by using the methods getVisibleFrom and getVisibleTo of the link. If there are no collapsed managers, the visible end nodes and the real end nodes are always the same
For a given node, all links that have the node as visible end node can be obtained by the methods:
The links that have it as real end node are obtained by the methods:
In Figure 1.11, two links have the visible destination node pay for supplies, but their real destination node is the inner node of pay for supplies, which is not visible in Figure 1.11, but can be seen in Figure 1.10.
If a manager is collapsed, the position of the connection point of the link is then determined by the link connector installed on the collapsed manager and not by the ones installed on the real end nodes.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |