Package | Description |
---|---|
prefuse.util.force |
Utility classes providing a physical force simulation for layout and
animation.
|
Modifier and Type | Field and Description |
---|---|
ForceItem |
Spring.item1
The first ForceItem endpoint
|
ForceItem |
Spring.item2
The second ForceItem endpoint
|
Modifier and Type | Method and Description |
---|---|
void |
ForceSimulator.addItem(ForceItem item)
Add a ForceItem to the simulation.
|
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.
|
void |
AbstractForce.getForce(ForceItem item)
Throws an UnsupportedOperationException.
|
void |
NBodyForce.getForce(ForceItem item)
Calculates the force vector acting on the given item.
|
void |
GravitationalForce.getForce(ForceItem item) |
void |
Force.getForce(ForceItem item)
Updates the force calculation on the given ForceItem
|
void |
WallForce.getForce(ForceItem item) |
void |
CircularWallForce.getForce(ForceItem item) |
void |
DragForce.getForce(ForceItem item) |
Spring |
Spring.SpringFactory.getSpring(ForceItem f1,
ForceItem f2,
float k,
float length)
Get a Spring instance and set it to the given parameters.
|
void |
NBodyForce.insert(ForceItem item)
Inserts an item into the quadtree.
|
static boolean |
ForceItem.isValid(ForceItem item)
Checks a ForceItem to make sure its values are all valid numbers
(i.e., not NaNs).
|
boolean |
ForceSimulator.removeItem(ForceItem item)
Remove a ForceItem to the simulation.
|
Constructor and Description |
---|
Spring(ForceItem fi1,
ForceItem fi2,
float k,
float len)
Create a new Spring instance
|
Copyright ? 2013 Regents of the University of California