edgebundles.visualisation.tree
Class TreeVisualiser

public abstract class TreeVisualiser

Title: Tree Visualiser

Description: Abstract Class and a factory for all tree visualizers

Copyright: Copyright (c) 2007

Company:

Version:
1.0
Author:
Bilal Alsallakh
Method Detail

visualise

public abstract void visualise(edgebundles.tree.VisualTree tree,
                               java.awt.Graphics g,
                               int width,
                               int height)
visualise
Parameters:
tree - VisualTree: The tree to visualise
g - Graphics: port to a canvas with drawing primitives
width: - The width (in pixels) of the drawing area
height: - The height (in pixels) of the drawing area The visualisation is performed for all layouts in two major steps, first the nodes are assigned relative coordinates, then the actual placement and size for each node is calculated, based on the available drawing space. The RandomLayout is an exception since it assigns random coordinates for the nodes inside the available space.

getVisualisersCount

public static int getVisualisersCount()
getVisualisersCount returns the number of available visualisers

getVisualiser

public static edgebundles.visualisation.tree.TreeVisualiser getVisualiser(int i)
getVisualiser returns the ith visualiser in the visualisers list.
Parameters:
i: - the index of the visualiser