Module org.testfx

Class PointQueryBase

    • Field Detail

      • node

        protected javafx.scene.Node node
    • Constructor Detail

      • PointQueryBase

        public PointQueryBase()
    • Method Detail

      • getPosition

        public javafx.geometry.Point2D getPosition()
        Specified by:
        getPosition in interface PointQuery
        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.
      • atPosition

        public PointQuery atPosition​(double positionX,
                                     double positionY)
        Description copied from interface: PointQuery
        Updates PointQuery.getPosition() to the new position.
        Specified by:
        atPosition in interface PointQuery
        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

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

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

        public PointQuery atOffset​(double offsetX,
                                   double offsetY)
        Description copied from interface: PointQuery
        Updates PointQuery.getOffset() by the combination of the current offset's x value and offsetX and its y value and offsetY.
        Specified by:
        atOffset in interface PointQuery
        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