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 convenient location.


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, TreePanel, and/or TreeForm 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 Microsoft Visual 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:
csc /r:KansasStateUniversity.TreeViewer.dll *.cs
The complete API documentation can be browsed online.

Bug Reports

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.

Rod Howell (rhowell@ksu.edu)

Valid HTML 4.01!
Valid CSS!
Internet Content Rating Association
SafeSurf Rated

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.