bass.visualisation.view
Class BandView
java.lang.Object
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
|
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 |
BandView
public BandView()
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 arraysallEdgesArray - all BassEdgeList's in arraysband - the targetbanddepth - the hierarchiedepthwithConnectedFriends - show the friendsconnection (edges) between the friends of the targetband?edgeconnection - show the connection between the targetband and it's friendsshowNames - 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 showntheBranch - 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'smainBand - the target bandtheBranch - the branchgroup on which all cylinders (edges) should be addedwhichEdges - defines which edges should be shown. This means either the edges from target to all friendbands or the edges between those friends