The tree display class is for displaying nested slotfillers as treelike data structures. The symbolic indices are shown; the values at the leaves are omitted, since the primary intended use is to display layouts in tree form. The number of children per node is limited to 128.Visual Representation
If you want to have values at the leaves shown, you must doctor the nested slotfiller, if possible, to turn the values into symbolic indices in slotfillers with arbitrary artificial values. For example, if you want the numeric values shown for the slotfiller
you could construct something like
and show t1 as a tree representing t.
A complicated layout can be represented as a nested slotfiller, and then displayed as a tree for a convenient view of its structure. In fact, the appropriate nested slotfiller representation is produced by the familytree attribute. For example, if ly is a layout, then its organization may look as follows:trû0Ø`familytree of `ly show `tr is `treeA Layout Represented as a Tree:
In this example, the ".table1" button has been selected by clicking on it.
If a callback function for the object is defined, it is called when:Attributes
In such a call, the path variable (see "Callback Functions") is the symbol vector path to the node.
- a selected item is double-clicked on; or,
- Enter is pressed when an item is selected (see the tree section in the "User Interactions with Displays" chapter).
See the "Display Attributes" chapter for details concerning all the attributes that apply to objects in the tree display class, as well as lists of colors and fonts. The keys in the Table of All Display Attributes that pertain to this class are R, ALL, CNFT, NFT, and TOP.
The attributes that are meaningful for the tree display class (other than the print... attributes) are:
active(Point the mouse cursor to an attribute to display a short description at the bottom of the screen)
|firstname.lastname@example.org||© Copyright 19952008 Morgan Stanley Dean Witter & Co. All rights reserved.|