org.wilmascope.forcelayout
Class DirectedField
java.lang.Object
org.wilmascope.patterns.Prototype
org.wilmascope.forcelayout.Force
org.wilmascope.forcelayout.DirectedField
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class DirectedField
- extends Force
A force field that will force all directed edges to align themselves
with its direction vector
- See Also:
- Serialized Form
Method Summary |
void |
calculate()
calculate the deltas to apply to the node positions due to
the effects of this force |
void |
setCluster(Cluster root)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DirectedField
public DirectedField(float strengthConstant,
javax.vecmath.Vector3f vector)
DirectedField
public DirectedField(float strengthConstant)
setCluster
public void setCluster(Cluster root)
- Specified by:
setCluster
in class Force
calculate
public void calculate()
- calculate the deltas to apply to the node positions due to
the effects of this force
- Specified by:
calculate
in class Force
- Parameters:
edges
- the list of edges to which this force is to
be applied