|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbass.visualisation.graph.BassGraphElement
bass.visualisation.graph.BassNode
public class BassNode
A BassNode is an Object that represents a band. Also it stores the edges (bond between two BassNodes) that are connected to this Node. The Node itself has a position, a radius, connected edges, amountOfFriends for the represented band and the amount of bandfriends.
| Field Summary | |
|---|---|
private int |
amountOfBandFriends
|
private int |
amountOfFriends
|
private int |
counter
|
private BassEdgeList |
edges
|
private javax.vecmath.Point3f |
position
|
private float |
radius
|
| Fields inherited from class bass.visualisation.graph.BassGraphElement |
|---|
id, name, owner |
| Constructor Summary | |
|---|---|
BassNode()
empty constructor |
|
| Method Summary | |
|---|---|
void |
addEdge(BassEdge edge)
Adds an BassEdge to this Node |
void |
delete()
delete method inherited from BassGraphElement |
int |
getAmountOfBandFriends()
|
int |
getAmountOfEdgesOfThisNode()
|
int |
getAmountOfFriends()
|
BassEdgeList |
getEdgesOfThisNode()
Get all BassEdges of this BassNode as a List |
BassEdgeList |
getInEdges()
|
float |
getMass()
get the radius of this node |
BassEdgeList |
getOutEdges()
|
javax.vecmath.Point3f |
getPosition()
get the position of the node in space |
protected void |
removeEdge(BassEdge edge)
remove a reference to an BassEdge from this BassNode |
void |
reposition(javax.vecmath.Vector3f delta)
adjust the node's position by delta |
void |
setAmount(int amountOfBandFriends)
Set the amount of bandfriends (got from the db) to this BassNode. |
void |
setFriendAmount(int amountOfFriends)
Set the amount of friends (got from the db) to this BassNode. |
void |
setMass(float radius)
set the radius of this node |
void |
setPosition(javax.vecmath.Point3f newPosition)
set the position of the node in space |
| Methods inherited from class bass.visualisation.graph.BassGraphElement |
|---|
getID, getName, getOwner, setID, setName, setOwner |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private BassEdgeList edges
private javax.vecmath.Point3f position
private float radius
private int amountOfFriends
private int amountOfBandFriends
private int counter
| Constructor Detail |
|---|
public BassNode()
| Method Detail |
|---|
public void delete()
BassGraphElement
delete in class BassGraphElementpublic void setAmount(int amountOfBandFriends)
amountOfFriends - Amount of just the bandfriends to set to this BassNodepublic void setFriendAmount(int amountOfFriends)
amountOfFriends - Amount of all friends to set to this BassNodepublic int getAmountOfBandFriends()
public int getAmountOfFriends()
public void addEdge(BassEdge edge)
edge - BassEdge to be addedprotected void removeEdge(BassEdge edge)
public BassEdgeList getEdgesOfThisNode()
public int getAmountOfEdgesOfThisNode()
public BassEdgeList getInEdges()
public BassEdgeList getOutEdges()
public void setPosition(javax.vecmath.Point3f newPosition)
newPosition - public void reposition(javax.vecmath.Vector3f delta)
delta - the adjustment to make to the node's positionpublic javax.vecmath.Point3f getPosition()
public void setMass(float radius)
public float getMass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||