public class YifanHuLayout.SpringForce extends AbstractForce
| Constructor and Description |
|---|
SpringForce(float optimalDistance) |
| Modifier and Type | Method and Description |
|---|---|
ForceVector |
calculateForce(org.gephi.graph.api.Node node1,
org.gephi.graph.api.Node node2,
float distance) |
Float |
getOptimalDistance() |
void |
setOptimalDistance(Float optimalDistance) |
calculateForcepublic ForceVector calculateForce(org.gephi.graph.api.Node node1, org.gephi.graph.api.Node node2, float distance)
calculateForce in class AbstractForcepublic void setOptimalDistance(Float optimalDistance)
public Float getOptimalDistance()
Copyright © 2007–2017. All rights reserved.