Package | Description |
---|---|
prefuse.util.force |
Utility classes providing a physical force simulation for layout and
animation.
|
Modifier and Type | Method and Description |
---|---|
Spring |
ForceSimulator.addSpring(ForceItem item1,
ForceItem item2)
Add a Spring to the simulation.
|
Spring |
ForceSimulator.addSpring(ForceItem item1,
ForceItem item2,
float length)
Add a Spring to the simulation.
|
Spring |
ForceSimulator.addSpring(ForceItem item1,
ForceItem item2,
float coeff,
float length)
Add a Spring to the simulation.
|
Spring |
Spring.SpringFactory.getSpring(ForceItem f1,
ForceItem f2,
float k,
float length)
Get a Spring instance and set it to the given parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractForce.getForce(Spring spring)
Throws an UnsupportedOperationException.
|
void |
Force.getForce(Spring spring)
Updates the force calculation on the given Spring.
|
void |
SpringForce.getForce(Spring s)
Calculates the force vector acting on the items due to the given spring.
|
void |
Spring.SpringFactory.reclaim(Spring s)
Reclaim a Spring into the object pool.
|
Copyright ? 2013 Regents of the University of California