public interface PointQuery
Bounds.| Modifier and Type | Method and Description |
|---|---|
PointQuery |
atOffset(double offsetX,
double offsetY)
Updates
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
getOffset() to be
new Point2D(this.offset.getX() + offset.getX(), this.offset.getY() + offset.getY()). |
PointQuery |
atPosition(double positionX,
double positionY)
Updates
getPosition() to the new position. |
PointQuery |
atPosition(javafx.geometry.Point2D position)
Updates
getPosition() to the new position. |
PointQuery |
atPosition(javafx.geometry.Pos position)
Updates
getPosition() to a new one based on the given position. |
javafx.geometry.Point2D |
getOffset() |
javafx.geometry.Point2D |
getPosition() |
PointQuery |
onNode(javafx.scene.Node node) |
javafx.geometry.Point2D |
query() |
java.util.Optional<Motion> |
queryMotion() |
javafx.geometry.Point2D getPosition()
x and y percentages (0.0 = 0% to 1.0 = 100%)
to use when calculating a relative position within a Bounds object.javafx.geometry.Point2D getOffset()
getPosition().PointQuery atPosition(javafx.geometry.Point2D position)
getPosition() to the new position.position - the new positionPointQuery atPosition(double positionX, double positionY)
getPosition() to the new position.positionX - the percentage to use: 0.0 (0%) to 1.0 (100%).positionY - the percentage to use: 0.0 (0%) to 1.0 (100%).PointQuery atPosition(javafx.geometry.Pos position)
getPosition() to a new one based on the given position.position - left/up = 0.0 (0%); center = 0.5 (50%); right/down = 1.0 (100%)PointQuery atOffset(javafx.geometry.Point2D offset)
getOffset() to be
new Point2D(this.offset.getX() + offset.getX(), this.offset.getY() + offset.getY()).offset - the amount by which to increase/decrease the offset's x and y valuesPointQuery atOffset(double offsetX, double offsetY)
getOffset() by the combination of the current offset's x value and
offsetX and its y value and offsetY.offsetX - the amount by which to increase/decrease the offset's x valueoffsetY - the amount by which to increase/decrease the offset's y valuejavafx.geometry.Point2D query()
Boundsobject that is calculated
via getPosition() by getOffset() amount.PointQuery onNode(javafx.scene.Node node)
java.util.Optional<Motion> queryMotion()