public abstract class PointQueryBase extends java.lang.Object implements PointQuery
| Modifier and Type | Field and Description |
|---|---|
protected javafx.scene.Node |
node |
| Constructor and Description |
|---|
PointQueryBase() |
| Modifier and Type | Method and Description |
|---|---|
PointQuery |
atOffset(double offsetX,
double offsetY)
Updates
PointQuery.getOffset() by the combination of the current offset's x value and
offsetX and its y value and offsetY. |
PointQuery |
atOffset(javafx.geometry.Point2D offset)
Updates
PointQuery.getOffset() to be
new Point2D(this.offset.getX() + offset.getX(), this.offset.getY() + offset.getY()). |
PointQuery |
atPosition(double positionX,
double positionY)
Updates
PointQuery.getPosition() to the new position. |
PointQuery |
atPosition(javafx.geometry.Point2D position)
Updates
PointQuery.getPosition() to the new position. |
PointQuery |
atPosition(javafx.geometry.Pos position)
Updates
PointQuery.getPosition() to a new one based on the given position. |
javafx.geometry.Point2D |
getOffset() |
javafx.geometry.Point2D |
getPosition() |
PointQuery |
onNode(javafx.scene.Node node) |
java.util.Optional<Motion> |
queryMotion() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitquerypublic javafx.geometry.Point2D getPosition()
getPosition in interface PointQueryx and y percentages (0.0 = 0% to 1.0 = 100%)
to use when calculating a relative position within a Bounds object.public javafx.geometry.Point2D getOffset()
getOffset in interface PointQueryPointQuery.getPosition().public PointQuery atPosition(javafx.geometry.Point2D position)
PointQueryPointQuery.getPosition() to the new position.atPosition in interface PointQueryposition - the new positionpublic PointQuery atPosition(double positionX, double positionY)
PointQueryPointQuery.getPosition() to the new position.atPosition in interface PointQuerypositionX - the percentage to use: 0.0 (0%) to 1.0 (100%).positionY - the percentage to use: 0.0 (0%) to 1.0 (100%).public PointQuery atPosition(javafx.geometry.Pos position)
PointQueryPointQuery.getPosition() to a new one based on the given position.atPosition in interface PointQueryposition - left/up = 0.0 (0%); center = 0.5 (50%); right/down = 1.0 (100%)public PointQuery atOffset(javafx.geometry.Point2D offset)
PointQueryPointQuery.getOffset() to be
new Point2D(this.offset.getX() + offset.getX(), this.offset.getY() + offset.getY()).atOffset in interface PointQueryoffset - the amount by which to increase/decrease the offset's x and y valuespublic PointQuery atOffset(double offsetX, double offsetY)
PointQueryPointQuery.getOffset() by the combination of the current offset's x value and
offsetX and its y value and offsetY.atOffset in interface PointQueryoffsetX - the amount by which to increase/decrease the offset's x valueoffsetY - the amount by which to increase/decrease the offset's y valuepublic PointQuery onNode(javafx.scene.Node node)
onNode in interface PointQuerypublic java.util.Optional<Motion> queryMotion()
queryMotion in interface PointQuerypublic java.lang.String toString()
toString in class java.lang.Object