Package edu.ksu.cis.viewer


package edu.ksu.cis.viewer
A package of tools for viewing and manipulating trees. There are two main uses for this package:
  1. A search tree viewer. This viewer is a program for displaying and manipulating search trees. Strings may be inserted or deleted from the trees, the user may move forward or backward through the history of modifications, and trees with their histories may be cloned and manipulated independently. The driver for this program is the Viewer class. It recognizes the command-line argument "mono", which spcifies that the program will run in monochrome mode (red nodes in AA Trees and Red-Black Trees are shown as gray). All other command- line arguments are ignored. An alternative driver for running in monochrome mode is MonochromeViewer.
  2. A set of tree-viewing tools for use within user programs. A developer may define tree structure which implements TreeInterface. If colored nodes are desired, a class implementing Colorizer may also be defined. A drawing of the tree can then be created using the TreeDrawing, TreeComponent, and/or TreeFrame classes.
See Also:
  • Class
    Description
    An immutable AA tree that can draw itself.
    An immutable AVL tree that can draw itself.
    An immutable binary search tree that can draw itself.
    An immutable binary tree that can draw itself.
    A Frame for creating and manipulating a data structure with functionality equivalent to a binary search tree.
    This interface is implemented by each of the data structures whose functionality is equivalent to a binary search tree.
    An interface to encapsulate a mechanism for associating colors to Objects.
    An immutable linear recursive structure with a head, which is an Object, and a tail, which is a ConsList.
    An exception thrown when an attempt is made to access the head or tail of an emtpy ConsList.
    An exception thrown when an attempt is made to access the root or a child of an emtpy BinaryTree.
    An immutable linear recursive structure with a head and a tail, which is a GenericConsList.
    A stack built from an immutable ConsList.
    An alternate entry point to the Search Tree Viewer to run the program in monochrome mode.
    The objects used as the nodes of trees in the BinaryTree class.
    An immutable Patricia trie that can draw itself.
    An immutable red-black tree that can draw itself.
    An immutable splay tree that can draw itself.
    A stack built from an immutable ConsList.
    A component displaying a graphical representation of a tree.
    An immutable high-level representation of a drawing of a tree.
    A frame for displaying a tree.
    This interface may be implemented by a tree in order to allow a TreeDrawing to be constructed from the tree.
    An immutable trie that can draw itself.
    This is the driver class for the Search Tree Viewer.