HierarchicalDisplaysDoc.tioga
Spreitzer, July 8, 1985 8:05:47 pm PDT
HierarchicalDisplays
CEDAR 6.0 — FOR INTERNAL XEROX USE ONLY
HierarchicalDisplays
Mike Spreitzer
© Copyright 1985 Xerox Corporation. All rights reserved.
Abstract: HierarchicalDisplays is a package for managing the display of tree-structured data. Each internal node of the tree is displayed as a name button followed by the displays of the children. The display of the leaves is up to the client. The tree can be updated.
Created by: Mike Spreitzer
Maintained by: Mike Spreitzer <Spreitzer.pa>
Keywords: Hierarchy, Tree, Viewer, Display, Window, Show, Visible, Nest, Draw, Paint, Button
XEROX Xerox Corporation
Palo Alto Research Center
3333 Coyote Hill Road
Palo Alto, California 94304
For Internal Xerox Use Only
1. The User Interface
A Hierarchical Display consists of nested viewers, whose containment follows the tree structure of the data being displayed. Each node in the tree has a name. Each internal node (i.e., not a leaf) is displayed as a name button, followed by one viewer for each child. The behavior of the name button is specified by the client.
2. The Client Interface
A Hierarchical Display is created by HierarchicalDisplays.CreateRoot, and is initially empty. The editing procedures may then be called. They are AddInternalNode, AddLeaf, and Remove. The editing procedures do not fully update the display. To bring the display fully up to date, the Pack procedure is called.