public class CircularWallForce extends AbstractForce
| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_GRAV_CONSTANT |
static float |
DEFAULT_MAX_GRAV_CONSTANT |
static float |
DEFAULT_MIN_GRAV_CONSTANT |
static int |
GRAVITATIONAL_CONST |
maxValues, minValues, params| Constructor and Description |
|---|
CircularWallForce(float x,
float y,
float r)
Create a new CircularWallForce with default gravitational constant.
|
CircularWallForce(float gravConst,
float x,
float y,
float r)
Create a new CircularWallForce.
|
| Modifier and Type | Method and Description |
|---|---|
void |
getForce(ForceItem item)
Throws an UnsupportedOperationException.
|
protected java.lang.String[] |
getParameterNames() |
boolean |
isItemForce()
Returns true.
|
getForce, getMaxValue, getMinValue, getParameter, getParameterCount, getParameterName, init, isSpringForce, setMaxValue, setMinValue, setParameterpublic static final float DEFAULT_GRAV_CONSTANT
public static final float DEFAULT_MIN_GRAV_CONSTANT
public static final float DEFAULT_MAX_GRAV_CONSTANT
public static final int GRAVITATIONAL_CONST
public CircularWallForce(float gravConst,
float x,
float y,
float r)
gravConst - the gravitational constant to usex - the center x-coordinate of the circley - the center y-coordinate of the circler - the radius of the circlepublic CircularWallForce(float x,
float y,
float r)
x - the center x-coordinate of the circley - the center y-coordinate of the circler - the radius of the circlepublic boolean isItemForce()
isItemForce in interface ForceisItemForce in class AbstractForceForce.isItemForce()protected java.lang.String[] getParameterNames()
getParameterNames in class AbstractForceAbstractForce.getParameterNames()public void getForce(ForceItem item)
AbstractForcegetForce in interface ForcegetForce in class AbstractForceitem - the ForceItem on which to compute updated forcesForce.getForce(prefuse.util.force.ForceItem)