bass.visualisation.graph
Class BassCluster
java.lang.Object
bass.visualisation.graph.BassGraphElement
bass.visualisation.graph.BassNode
bass.visualisation.graph.BassCluster
public class BassCluster
- extends BassNode
A Cluster should be a group of nodes with their edges to visualize i.e. the genre rock. For now this idea is frozen.
Not used in the current version of bass. Maybe this will be implemented later on.
- Version:
- 0.1
- Author:
- Patrick Mai
| Methods inherited from class bass.visualisation.graph.BassNode |
delete, getAmountOfBandFriends, getAmountOfEdgesOfThisNode, getAmountOfFriends, getEdgesOfThisNode, getInEdges, getMass, getOutEdges, getPosition, removeEdge, reposition, setAmount, setFriendAmount, setMass, setPosition |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nodes
private BassNodeList nodes
internalEdges
private BassEdgeList internalEdges
BassCluster
public BassCluster()
getNodes
public BassNodeList getNodes()
getInternalEdges
public BassEdgeList getInternalEdges()
addNode
public void addNode(BassNode node)
addEdge
public void addEdge(BassEdge edge)
- Description copied from class:
BassNode
- Adds an BassEdge to this Node
- Overrides:
addEdge in class BassNode
- Parameters:
edge - BassEdge to be added
isAncestor
public boolean isAncestor(BassNode node)
- Check if the specified node is a child of this cluster or one of this
cluster's child clusters etc
- Parameters:
node - node ancestory of
- Returns:
- true if this cluster is an ancestor of node