This sample is located in \Samples\afc11\JTreeVue.
Description
Using the Sample
Key Project Files
Technologies Demonstrated
The JTreeVue applet parses a Tree.htm file generated in the Javadoc format and displays it as a hierarchical tree of classes. Nodes for classes that implement interfaces have an Implements menu button that displays a list of those interfaces. Nodes for interfaces that extend other interfaces have an Extends menu button that displays a list of those interfaces.
The currently selected class or interface appears in a status bar below the scrollable viewer that contains the class hierarchy tree.
To use the sample
You can view the items in the tree by performing the following actions:
This class extends AwtUIApplet. It contains the main applet code, which constructs the basic user interface and the overall class hierarchy graphics.
JTreeNode.javaThis class extends UIPanel and implements JTreeConsts. It parses and tokenizes the HTML file that contains the class hierarchy.
JTreeVuePanel.javaThis class extends UIPanel and implements JTreeConsts and JTCallbacks. It handles mouse events so that the focus shifts to the selected item.
JTreeNodeInfo.javaThis class implements JTreeConsts. It distinguishes between a class and an interface and constructs the user interface accordingly.
JTreeNodeItem.javaThis class extends UIItem and implements JTreeConsts. It constructs the package nodes of the user interface.