| Developing with the SDK > Using and Writing Data Models > NonJavaBeans Example: Abstract Model Variant > The Tree Model Example |
The Tree Model Example |
INDEX
PREVIOUS
NEXT
|
The Tree Model example displays the contents of a Swing JTree object as a graph. The nodes of the graph are the items in the tree (also called tree nodes), and the links of the graph represent the parent-child relationships between the items., see Figure 2.4.
This example uses the base class IlvAbstractSDMModel and implements nodes and links using the IlvSDMNode and IlvSDMLink interfaces, for the following reasons:
The example is supplied with ILOG JViews Diagrammer in the directory <installdir>/jviews-diagrammer81/codefragments/datamodel/treemodel.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |