Title: Tree Visualiser
Description: Abstract Class and a factory for all tree visualizers
Copyright: Copyright (c) 2007
Company:
Method Detail |
public abstract void visualise(edgebundles.tree.VisualTree tree, java.awt.Graphics g, int width, int height)
tree
- VisualTree: The tree to visualiseg
- Graphics: port to a canvas with drawing primitiveswidth:
- The width (in pixels) of the drawing areaheight:
- 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.public static int getVisualisersCount()
public static edgebundles.visualisation.tree.TreeVisualiser getVisualiser(int i)
i:
- the index of the visualiser