edgebundles.visualisation
Class DataVisualiser

public class DataVisualiser

Title: Data Visualiser

Description: This class visualises the data (hierarchical + adjacency relations), using adjustable tree layout layout, and a link visualiser. The bundling degree as well as the alpha blending can be conrolled.

Copyright: Copyright (c) 2007

Company:

Version:
1.0
Author:
not attributable
Method Detail

visualise

public void visualise(java.awt.Graphics2D g,
                      int width,
                      int height)
visualisees the current dataset (if any) on the given Graphics object
Parameters:
g - Graphics2D, port to the drawing area
width - int dimensions of the drawing area
height - int dimensions of the drawing area

setBeta

public void setBeta(double beta)
setBeta
Parameters:
beta - double, the value for bundling strength (0 for no bundling i.e. straight line links, 1 for full bundling i.e. b-spline for the exact tree path, between ]0,1[ for partial bundling

getBeta

public double getBeta()
getBeta returns the current value of beta, the bundling strength

getMaxAlpha

public double getMaxAlpha()
getMaxAlpha returns the maximum value of alpha blending, which will be assigned to the longest link (and zero-blending to the shortest).

setMaxAlpha

public void setMaxAlpha(double maxAlpha)
setMaxAlpha sets the maximum value of alpha blending, which will be assigned to the longest link (and zero-blending to the shortest).
Parameters:
maxAlpha - the desired maximum value for alpha blending (should be in [0, 1]).

setTreeVisualiser

public void setTreeVisualiser(edgebundles.visualisation.tree.TreeVisualiser treeVis)
setTreeVisualiser, sets the tree visualisation algorithm to use
Parameters:
treeVis, - the tree visualsier to use

setLinkVisualiser

public void setLinkVisualiser(edgebundles.visualisation.link.BSplineLinkVisualiser linkVis)
setLinkVisualiser, sets the link visualisation algorithm to use Currently there is only one implemented visualiser, the BSpline based one. The link visualiser is assumed to handle the start and end color for the link, and enable the user to assign them.
Parameters:
linkVis, - the link visualsier to use

setData

public void setData(edgebundles.io.DataReader dataReader)
setData, sets the dataset to visualise
Parameters:
dataReader, - the datareader which provides the hierachical and the adjacnaey relations to visualise. A more elaborate data structure is created from this data reader, which offers fast answers to many queries.