|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.ui.layout.springbox.EdgeSpring
public class EdgeSpring
Edge representation.
Field Summary | |
---|---|
double |
attE
The edge attraction energy. |
String |
id
The edge identifier. |
boolean |
ignored
Make this edge ignored by the layout algorithm ?. |
NodeParticle |
node0
Source node. |
NodeParticle |
node1
Target node. |
Vector3 |
spring
The attraction force on this edge. |
double |
weight
Edge weight. |
Constructor Summary | |
---|---|
EdgeSpring(String id,
NodeParticle n0,
NodeParticle n1)
New edge between two given nodes. |
Method Summary | |
---|---|
void |
attraction()
Compute the attraction force on this edge. |
NodeParticle |
getOpposite(NodeParticle node)
Considering the two nodes of the edge, return the one that was not given as argument. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String id
public NodeParticle node0
public NodeParticle node1
public double weight
public Vector3 spring
public boolean ignored
public double attE
Constructor Detail |
---|
public EdgeSpring(String id, NodeParticle n0, NodeParticle n1)
id
- The edge identifier.n0
- The first node.n1
- The second node.Method Detail |
---|
public NodeParticle getOpposite(NodeParticle node)
node
- One of the nodes of the edge.
public void attraction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |