|
||||||||||
| 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.BassEdge
public class BassEdge
A BassEdge is an Object that describe the relation between two nodes. It stores the startNode (Band) and the endNode of a realtionship. Since mySpace only allow undirected graphs (a band/user can only be on another friendlist if that other band/user is on the own list) The Edge itself has a startNode a endNode and a vector who describes the direction of the edge. The Vector is calculated after the Layout algorithm did it's work.
| Field Summary | |
|---|---|
private BassNode |
end
|
private BassNode |
start
|
private javax.vecmath.Vector3f |
vector
|
| Fields inherited from class bass.visualisation.graph.BassGraphElement |
|---|
id, name, owner |
| Constructor Summary | |
|---|---|
BassEdge()
empty constructor |
|
BassEdge(BassNode start,
BassNode end)
Sets up an edge with the start node and the end node. |
|
| Method Summary | |
|---|---|
void |
delete()
delete the specific element, removing all references to it. |
BassNode |
getEnd()
|
BassNode |
getStart()
|
javax.vecmath.Vector3f |
getVector()
get the vector of this edge |
void |
setEnd(BassNode newEnd)
Sets the endNode to an 'empty' bassedge object |
void |
setStart(BassNode newStart)
Sets the startNode to an 'empty' bassedge object |
void |
setVector(javax.vecmath.Vector3f v)
Set the vector for this edge to v |
| 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 BassNode start
private BassNode end
private javax.vecmath.Vector3f vector
| Constructor Detail |
|---|
public BassEdge()
public BassEdge(BassNode start,
BassNode end)
start - end - | Method Detail |
|---|
public void delete()
BassGraphElement
delete in class BassGraphElementpublic void setStart(BassNode newStart)
newStart - public void setEnd(BassNode newEnd)
newEnd - public BassNode getStart()
public BassNode getEnd()
public void setVector(javax.vecmath.Vector3f v)
v - public javax.vecmath.Vector3f getVector()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||