SpaceTree

SpaceTree is a novel tree browser that builds on the conventional layout node link diagrams along a single preferred direction. It adds dynamic rescaling of branches of the tree to best fit the available screen space, optimized camera movement, and the use of preview icons summarizing the topology of the branches that cannot be expanded. In addition, it includes integrated search and filter functions.

Getting Started

SpaceTree requires that Java 1.4 is installed on your computer. Once you have Java installed double-click on the /spacetree/spacetree.jar file. SpaceTree will start and present you with an open file dialogue box. Open one of the samples files in /spacetree/data/, such as orgchart.xml, to get started. SpaceTree can open any valid XML file, to open a new file choose File->Open from the file menu.

Once your file has been loaded try clicking on some of the nodes in the tree. When you click on a node it becomes the focus node and it and its ancestors are colored blue. SpaceTree will change the tree layout based on the focus node that you have set and the amount of screen space that is available.

Searching

SpaceTree supports searching and pruning of the tree. As you type your search matching nodes in the tree will be highlighted. If a matching node is not visible the thumbnail of its visible ancestor will be highlighted.

When you press the Go button SpaceTree will change the layout so that only nodes that match the search and their ancestors are shown. Also all children of the current focus node will be shown. Press the Reset button to change back to the normal layout.

Preferences

SpaceTree comes with many preferences allowing you to configure the display and browsing interaction. To view the preferences panel choose File->Preferences. Note that you may save a particular set of preferences for a given XML data file. To do this choose File->Save Preferences and the current set of preferences will be saved for the current open XML file. Preferences are stored as a separate XML file in spacetree-prefs.

Here is a short description of the available preferences:

Command Line Options

SpaceTree may be run with a number of command line options.

For example, with the orgchart.xml file in the same directory as spacetree.jar you could type:

Java Web Start

SpaceTree may be run as a stand alone application, or it can be run as a Java Web Start application. To run it as a Java Web Start application you need to:

  1. Have Java Web Start installed on your client computer, download it here
  2. Copy spacetree.jar, spacetree.jnlp, and the spacetree/lib folder to your web server.
  3. Modify the spacetree.jnlp file with your web server's information (codebase will need to be changed for example)
  4. Now access http://www.yourdomain.com/spacetreedirectory/spacetree.jnlp and that will launch the spacetree application.

OutOfMemoryException

When opening very large tree's SpaceTree may need more then the default 64mb of memory that is available to Java. If you get an OutOfMemoryException while loading a tree you need to.

  1. Quit SpaceTree.
  2. Create a run.bat file with the following line: java -Xmx256m -jar spacetree.jar
  3. Then launch SpaceTree by double clicking on the run.bat file instead of on the spacetree.jar file. This will give Java a maximum of 256 mb of memory to use before it runs out.

IVContest Format

SpaceTree can import files that conform to the IVContest format (XML tree format validated with the included tree.dtd). To import such a file:

  1. Launch SpaceTree from the command line or by using a .bat file so that the dos console is available.
  2. Choose import IVContest Format from the File menu
  3. Choose an IVContest formatted xml file. Note that if that file refers to the tree.dtd then the tree.dtd needs to be available. This may means putting the tree.dtd file in the same directory as the file you are opening.
  4. Once you have chosen a file you will be prompted in the dos console for the attribute to display. The IVContest format allows for multiple attributes, but SpaceTree only displays one (in a tree nodes text area), so you need to tell it which attribute to display.
  5. NOTE: If you launch spacetree so that no console is available (for examples you just double click on the spacetree.jar file) then when importing the IVContest format it will default to choosing the "name" attribute from that file.