public class Gravity extends java.lang.Object implements IComponent
| Type | Property and Description |
|---|---|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
gravityX
Get the gravity property.
|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
gravityY |
| Constructor and Description |
|---|
Gravity()
Empty constructor.
|
Gravity(double gravity)
Construct with an initial value.
|
Gravity(double gx,
double gy) |
| Modifier and Type | Method and Description |
|---|---|
double |
getGravityX()
Gets the value of the property gravityX.
|
double |
getGravityY()
Gets the value of the property gravityY.
|
java.util.List<javafx.beans.property.SimpleObjectProperty<?>> |
getProperties()
Gets any properties this component holds.
|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
gravityXProperty()
Get the gravity property.
|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
gravityYProperty() |
void |
setGravityX(double gx)
Sets the value of the property gravityX.
|
void |
setGravityY(double gy)
Sets the value of the property gravityY.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassForComponentMap, getProperty, getProperty, getPropertyNamesAndClasses, removeBindingsclone, serialize, serializeToStringpublic javafx.beans.property.SimpleObjectProperty<java.lang.Double> gravityXProperty
getGravityX(),
setGravityX(double)public javafx.beans.property.SimpleObjectProperty<java.lang.Double> gravityYProperty
getGravityY(),
setGravityY(double)public Gravity()
public Gravity(double gravity)
gravity - the initial valuepublic Gravity(double gx,
double gy)
public javafx.beans.property.SimpleObjectProperty<java.lang.Double> gravityXProperty()
getGravityX(),
setGravityX(double)public javafx.beans.property.SimpleObjectProperty<java.lang.Double> gravityYProperty()
getGravityY(),
setGravityY(double)public double getGravityX()
public void setGravityX(double gx)
public double getGravityY()
public void setGravityY(double gy)
public java.util.List<javafx.beans.property.SimpleObjectProperty<?>> getProperties()
IComponentgetProperties in interface IComponent