public class Translation2D extends Object
| Type | Property and Description |
|---|---|
javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Point2D> |
destination
Property containing the destination point.
|
javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Point2D> |
source
Property containing the source point.
|
| Modifier and Type | Field and Description |
|---|---|
private javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Point2D> |
destination |
private javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Point2D> |
source |
| Constructor and Description |
|---|
Translation2D(double srcX,
double srcY,
double destX,
double destY)
Initialize the object using coordinates for the source and destination
|
Translation2D(javafx.geometry.Point2D source,
javafx.geometry.Point2D destination)
Initialize the object using two 2D points.
|
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Point2D> |
destinationProperty()
Property containing the destination point.
|
javafx.geometry.Point2D |
getDestination()
Get the destination point.
|
javafx.geometry.Point2D |
getSource()
Get the source point.
|
javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Point2D> |
sourceProperty()
Property containing the source point.
|
private final javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Point2D> source
private final javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Point2D> destination
public Translation2D(javafx.geometry.Point2D source,
javafx.geometry.Point2D destination)
source - pointdestination - pointpublic Translation2D(double srcX,
double srcY,
double destX,
double destY)
srcX - X-coordinate of the source pointsrcY - Y-coordinate of the source pointdestX - X-coordinate of the destination pointdestY - Y-coordinate of the destination pointpublic javafx.geometry.Point2D getSource()
public javafx.geometry.Point2D getDestination()
public javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Point2D> sourceProperty()
public javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Point2D> destinationProperty()
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.