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, setParameter
public 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 Force
isItemForce
in class AbstractForce
Force.isItemForce()
protected java.lang.String[] getParameterNames()
getParameterNames
in class AbstractForce
AbstractForce.getParameterNames()
public void getForce(ForceItem item)
AbstractForce
getForce
in interface Force
getForce
in class AbstractForce
item
- the ForceItem on which to compute updated forcesForce.getForce(prefuse.util.force.ForceItem)
Copyright ? 2013 Regents of the University of California