|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gephi.layout.plugin.force.AbstractForce
org.gephi.layout.plugin.force.yifanHu.YifanHuLayout.SpringForce
public class YifanHuLayout.SpringForce
Fa = (n2 - n1) * ||n2 - n1|| / K
Constructor Summary | |
---|---|
YifanHuLayout.SpringForce(float optimalDistance)
|
Method Summary | |
---|---|
ForceVector |
calculateForce(Spatial node1,
Spatial node2,
float distance)
|
java.lang.Float |
getOptimalDistance()
|
void |
setOptimalDistance(java.lang.Float optimalDistance)
|
Methods inherited from class org.gephi.layout.plugin.force.AbstractForce |
---|
calculateForce |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public YifanHuLayout.SpringForce(float optimalDistance)
Method Detail |
---|
public ForceVector calculateForce(Spatial node1, Spatial node2, float distance)
calculateForce
in class AbstractForce
public void setOptimalDistance(java.lang.Float optimalDistance)
public java.lang.Float getOptimalDistance()
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |