Module org.testfx

Interface PointQuery

    • Method Detail

      • getPosition

        javafx.geometry.Point2D getPosition()
        Returns:
        the position that stores the x and y percentages (0.0 = 0% to 1.0 = 100%) to use when calculating a relative position within a Bounds object.
      • getOffset

        javafx.geometry.Point2D getOffset()
        Returns:
        the amount by which to offset the point calculated via getPosition().
      • atPosition

        PointQuery atPosition​(javafx.geometry.Point2D position)
        Updates getPosition() to the new position.
        Parameters:
        position - the new position
        Returns:
        itself
      • atPosition

        PointQuery atPosition​(double positionX,
                              double positionY)
        Updates getPosition() to the new position.
        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

        PointQuery atPosition​(javafx.geometry.Pos position)
        Updates getPosition() to a new one based on the given position.
        Parameters:
        position - left/up = 0.0 (0%); center = 0.5 (50%); right/down = 1.0 (100%)
        Returns:
        itself
      • atOffset

        PointQuery atOffset​(javafx.geometry.Point2D offset)
        Updates getOffset() to be new Point2D(this.offset.getX() + offset.getX(), this.offset.getY() + offset.getY()).
        Parameters:
        offset - the amount by which to increase/decrease the offset's x and y values
        Returns:
        itself
      • atOffset

        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.
        Parameters:
        offsetX - the amount by which to increase/decrease the offset's x value
        offsetY - the amount by which to increase/decrease the offset's y value
        Returns:
        itself
      • query

        javafx.geometry.Point2D query()
        Returns:
        a position that offsets the relative position within the initial Boundsobject that is calculated via getPosition() by getOffset() amount.
      • onNode

        PointQuery onNode​(javafx.scene.Node node)