bass.visualisation.view
Class BandView

java.lang.Object
  extended by bass.visualisation.view.BandView

public class BandView
extends java.lang.Object

Creates BassSpheres and BassCylinders for all the nodes/edges in the lists. This class mainly creates a branchgroup that is ready to place into the scenegraph. It only places one band with it's friends and if depth=2 the friends of the friends as well.

Version:
0.1
Author:
Patrick Mai

Constructor Summary
BandView()
           
 
Method Summary
static javax.media.j3d.BranchGroup showABandWithFriends(BassNodeList[] allNodesArray, BassEdgeList[] allEdgesArray, java.lang.String band, int depth, boolean withConnectedFriends, boolean edgeconnection, boolean showNames, Gui theGui)
           
private static void showEdges(BassEdgeList[] edges, java.lang.String mainBand, javax.media.j3d.BranchGroup theBranch, int whichEdges)
           
private static void showNames(BassNode node, javax.media.j3d.BranchGroup theBranch)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BandView

public BandView()
Method Detail

showABandWithFriends

public static javax.media.j3d.BranchGroup showABandWithFriends(BassNodeList[] allNodesArray,
                                                               BassEdgeList[] allEdgesArray,
                                                               java.lang.String band,
                                                               int depth,
                                                               boolean withConnectedFriends,
                                                               boolean edgeconnection,
                                                               boolean showNames,
                                                               Gui theGui)
Parameters:
allNodesArray - all BassNodeList's in arrays
allEdgesArray - all BassEdgeList's in arrays
band - the targetband
depth - the hierarchiedepth
withConnectedFriends - show the friendsconnection (edges) between the friends of the targetband?
edgeconnection - show the connection between the targetband and it's friends
showNames - should the names of all the displayed bands (nodes) be shown?
Returns:
the branchgroup that is added to the sceneroot

showNames

private static void showNames(BassNode node,
                              javax.media.j3d.BranchGroup theBranch)
Parameters:
node - the BassNode (band) the name shall be shown
theBranch - the BranchGroup on which the child should be added

showEdges

private static void showEdges(BassEdgeList[] edges,
                              java.lang.String mainBand,
                              javax.media.j3d.BranchGroup theBranch,
                              int whichEdges)
Parameters:
edges - the arrays with all BassEdgeList's
mainBand - the target band
theBranch - the branchgroup on which all cylinders (edges) should be added
whichEdges - defines which edges should be shown. This means either the edges from target to all friendbands or the edges between those friends