public class Position extends java.lang.Object implements IComponent
| Type | Property and Description |
|---|---|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
x
Get the x property.
|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
y
Get the y property.
|
| Constructor and Description |
|---|
Position()
Empty constructor.
|
Position(double x,
double y)
Constructor with initial values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(double dx,
double dy) |
java.util.List<javafx.beans.property.SimpleObjectProperty<?>> |
getProperties()
Gets any properties this component holds.
|
double |
getX()
Gets the value of the property x.
|
double |
getY()
Gets the value of the property y.
|
void |
setX(double x)
Sets the value of the property x.
|
void |
setXY(double x,
double y) |
void |
setY(double y)
Sets the value of the property y.
|
java.lang.String |
toString() |
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
xProperty()
Get the x property.
|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
yProperty()
Get the y property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClassForComponentMap, getProperty, getProperty, getPropertyNamesAndClasses, removeBindingsclone, serialize, serializeToStringpublic javafx.beans.property.SimpleObjectProperty<java.lang.Double> xProperty
getX(),
setX(double)public javafx.beans.property.SimpleObjectProperty<java.lang.Double> yProperty
getY(),
setY(double)public Position()
public Position(double x,
double y)
x - initial x valuey - initial y valuepublic javafx.beans.property.SimpleObjectProperty<java.lang.Double> xProperty()
getX(),
setX(double)public double getX()
public void setX(double x)
public javafx.beans.property.SimpleObjectProperty<java.lang.Double> yProperty()
getY(),
setY(double)public double getY()
public void setY(double y)
public void setXY(double x,
double y)
public void add(double dx,
double dy)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<javafx.beans.property.SimpleObjectProperty<?>> getProperties()
IComponentgetProperties in interface IComponent