Advanced Features > Nested Managers and Nested Graphers > Introducing Submanagers

Chapter 5, Managers and Chapter 6, Graphers of The Essential JViews Framework manual introduced the manager (IlvManager) and its subclass the grapher (IlvGrapher). The manager and the grapher are the main classes that can contain graphic objects for displaying and manipulating in several views.

The manager and grapher are themselves graphic objects that can be embedded inside another manager or grapher. This nesting feature of ILOG JViews allows you to create applications that display a graph inside another graph. An example is shown in Figure 1.1.

images/subgraph1.gif

Figure 1.1 Nested Graphs

In this figure, the object titled "Obtain Supplies" is a grapher (instance of IlvGrapher) that itself contains two other graphers, titled "deliver supplies" and "pay for supplies." The figure shows that a manager (and a grapher) can be surrounded by a frame; in this example the three (blue) frames each display the name of the manager as a title. This type of decoration as well as the background of the submanager can be completely customized. Another feature shown in this example is the fact that links between nodes can cross subgraph boundaries. Such links are called intergraph links.

Each grapher or manager embedded inside another manager or grapher can also be displayed in several views, just like top-level managers.

Finally, a manager or grapher embedded inside another manager has two different representations: an expanded state where all the objects contained in the submanager are visible, and a collapsed state where the manager is drawn with a collapsed representation that can also be customized.