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(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(Point2D position)
Updates
getPosition() to the new position |
PointQuery |
atPosition(Pos position)
Updates
getPosition() to a new one based on the given position . |
Point2D |
getOffset() |
Point2D |
getPosition() |
PointQuery |
onNode(Node node) |
Point2D |
query() |
Optional<Motion> |
queryMotion() |
Point2D getPosition()
x
and y
percentages (0.0 = 0% to 1.0 = 100%)
to use when calculating a relative position within a Bounds
object.Point2D getOffset()
getPosition()
.PointQuery atPosition(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(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(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 & 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 valuePoint2D query()
Bounds
object that is calculated
via getPosition()
by getOffset()
amount.PointQuery onNode(Node node)