public class GlobalForce extends java.lang.Object implements IComponent
| Type | Property and Description |
|---|---|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
direction
Get the direction property.
|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
magnitude
Get the magnitude property.
|
| Constructor and Description |
|---|
GlobalForce()
Default constructor.
|
GlobalForce(double magnitude,
double direction)
Construct with initial values.
|
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
directionProperty()
Get the direction property.
|
java.lang.Double |
getDirection()
Gets the value of the property direction.
|
java.lang.Double |
getMagnitude()
Gets the value of the property magnitude.
|
java.util.List<javafx.beans.property.SimpleObjectProperty<?>> |
getProperties()
Gets any properties this component holds.
|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
magnitudeProperty()
Get the magnitude property.
|
void |
setDirection(double direction)
Sets the value of the property direction.
|
void |
setMagnitude(double magnitude)
Sets the value of the property magnitude.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassForComponentMap, getProperty, getProperty, getPropertyNamesAndClasses, removeBindingsclone, serialize, serializeToStringpublic javafx.beans.property.SimpleObjectProperty<java.lang.Double> magnitudeProperty
getMagnitude(),
setMagnitude(double)public javafx.beans.property.SimpleObjectProperty<java.lang.Double> directionProperty
getDirection(),
setDirection(double)public GlobalForce()
public GlobalForce(double magnitude,
double direction)
magnitude - initial magnitudedirection - initial directionpublic javafx.beans.property.SimpleObjectProperty<java.lang.Double> magnitudeProperty()
getMagnitude(),
setMagnitude(double)public java.lang.Double getMagnitude()
public void setMagnitude(double magnitude)
public javafx.beans.property.SimpleObjectProperty<java.lang.Double> directionProperty()
getDirection(),
setDirection(double)public java.lang.Double getDirection()
public void setDirection(double direction)
public java.util.List<javafx.beans.property.SimpleObjectProperty<?>> getProperties()
IComponentgetProperties in interface IComponent