Package org.testfx.service.query.impl
Class PointQueryBase
java.lang.Object
org.testfx.service.query.impl.PointQueryBase
- All Implemented Interfaces:
PointQuery
- Direct Known Subclasses:
BoundsPointQuery
,CallableBoundsPointQuery
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionatOffset
(double offsetX, double offsetY) UpdatesPointQuery.getOffset()
by the combination of the currentoffset
'sx
value andoffsetX
and itsy
value andoffsetY
.atOffset
(javafx.geometry.Point2D offset) UpdatesPointQuery.getOffset()
to benew Point2D(this.offset.getX() + offset.getX(), this.offset.getY() + offset.getY())
.atPosition
(double positionX, double positionY) UpdatesPointQuery.getPosition()
to the newposition
.atPosition
(javafx.geometry.Point2D position) UpdatesPointQuery.getPosition()
to the newposition
.atPosition
(javafx.geometry.Pos position) UpdatesPointQuery.getPosition()
to a new one based on the givenposition
.javafx.geometry.Point2D
javafx.geometry.Point2D
onNode
(javafx.scene.Node node) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.testfx.service.query.PointQuery
query
-
Field Details
-
position
private javafx.geometry.Point2D position -
offset
private javafx.geometry.Point2D offset -
node
protected javafx.scene.Node node
-
-
Constructor Details
-
PointQueryBase
public PointQueryBase()
-
-
Method Details
-
getPosition
public javafx.geometry.Point2D getPosition()- Specified by:
getPosition
in interfacePointQuery
- Returns:
- the position that stores the
x
andy
percentages (0.0 = 0% to 1.0 = 100%) to use when calculating a relative position within aBounds
object.
-
getOffset
public javafx.geometry.Point2D getOffset()- Specified by:
getOffset
in interfacePointQuery
- Returns:
- the amount by which to offset the point calculated via
PointQuery.getPosition()
.
-
atPosition
Description copied from interface:PointQuery
UpdatesPointQuery.getPosition()
to the newposition
.- Specified by:
atPosition
in interfacePointQuery
- Parameters:
position
- the new position- Returns:
- itself
-
atPosition
Description copied from interface:PointQuery
UpdatesPointQuery.getPosition()
to the newposition
.- Specified by:
atPosition
in interfacePointQuery
- Parameters:
positionX
- the percentage to use: 0.0 (0%) to 1.0 (100%).positionY
- the percentage to use: 0.0 (0%) to 1.0 (100%).- Returns:
- itself
-
atPosition
Description copied from interface:PointQuery
UpdatesPointQuery.getPosition()
to a new one based on the givenposition
.- Specified by:
atPosition
in interfacePointQuery
- Parameters:
position
- left/up = 0.0 (0%); center = 0.5 (50%); right/down = 1.0 (100%)- Returns:
- itself
-
atOffset
Description copied from interface:PointQuery
UpdatesPointQuery.getOffset()
to benew Point2D(this.offset.getX() + offset.getX(), this.offset.getY() + offset.getY())
.- Specified by:
atOffset
in interfacePointQuery
- Parameters:
offset
- the amount by which to increase/decrease the offset's x and y values- Returns:
- itself
-
atOffset
Description copied from interface:PointQuery
UpdatesPointQuery.getOffset()
by the combination of the currentoffset
'sx
value andoffsetX
and itsy
value andoffsetY
.- Specified by:
atOffset
in interfacePointQuery
- Parameters:
offsetX
- the amount by which to increase/decrease the offset's x valueoffsetY
- the amount by which to increase/decrease the offset's y value- Returns:
- itself
-
onNode
- Specified by:
onNode
in interfacePointQuery
-
queryMotion
- Specified by:
queryMotion
in interfacePointQuery
-
toString
-