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:
-
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 isMonochromeViewer
. -
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 implementingColorizer
may also be defined. A drawing of the tree can then be created using theTreeDrawing
,TreeComponent
, and/orTreeFrame
classes.
-
ClassDescriptionAn 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.GenericConsList<E extends Serializable>An immutable linear recursive structure with a head and a tail, which is a GenericConsList.GenericStack<E extends Serializable>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 theBinaryTree
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 immutableConsList
.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 aTreeDrawing
to be constructed from the tree.An immutable trie that can draw itself.This is the driver class for the Search Tree Viewer.