KansasStateUniversity.TreeViewer is a class library for
displaying tree data structures from user programs. This library
is a port of a portion of the JavaTM package edu.ksu.cis.viewer to the
Microsoft® .NET Framework. A new version, more consistent in
style with the .NET Framework, has been created, but this version
will continue to be maintained.
The remainder of this page describes how to install and use the
package on your own platform. A Microsoft Windows® operating
system or emulator is required.
To install the library, simply download
KansasStateUniversity.TreeViewer.dll and place it in a
In order to be able to implement a tree that can be displayed using
this library, you must write your tree class to implement ITree.
If you wish to have colored nodes, you will also need to provide a
class that implements IColorizer.
You may then use the TreeDrawing,
classes to display your tree.
To compile your program, you will need to instruct the compiler where
to find KansasStateUniversity.TreeViewer.dll. If you are using
Studio®, you will need to go to the Solution Explorer and
To compile a program from a command prompt, you will need to supply
the appropriate compiler option to instruct the compiler where to
find the library. For example, if you are writing a C# program
and the library is in the same folder as your source code, you
could compile your program as follows:
- right-click on "References";
- select "Add Reference...";
- click the "Browse" tab;
- navigate to KansasStateUniversity.TreeViewer.dll; and
- click "OK".
csc /r:KansasStateUniversity.TreeViewer.dll *.cs
The complete API documentation can be
This library has not been tested on a wide variety of
platforms. If you discover compatibility issues or other bugs,
please let me know.
Last updated December 26, 2008.
Java is a trademark or
registered trademark of Sun Microsystems, Inc. in the United States
and other countries.
Microsoft, .NET, Windows, and Visual Studio are either registered
trademarks or trademarks of Microsoft Corporation in the United States
and/or other countries.