Module org.testfx

Interface MoveRobot

  • All Known Implementing Classes:
    MoveRobotImpl

    public interface MoveRobot
    • Method Summary

      Modifier and Type Method Description
      default void moveBy​(double x, double y)
      Moves the mouse directly (see: Motion.DIRECT from the current location to the given (x, y) location.
      void moveBy​(double x, double y, Motion motion)
      Moves the mouse from the current location to the given (x, y) location.
      default void moveTo​(PointQuery pointQuery)
      Moves the mouse directly to the (x,y) position specified by the given PointQuery.query().
      void moveTo​(PointQuery pointQuery, Motion motion)
      Moves the mouse to the (x,y) position specified by the given PointQuery.query() using the specified motion (see: Motion) and clicks whatever is under it.
    • Method Detail

      • moveTo

        default void moveTo​(PointQuery pointQuery)
        Moves the mouse directly to the (x,y) position specified by the given PointQuery.query().
        Parameters:
        pointQuery - the pointQuery to move to
      • moveTo

        void moveTo​(PointQuery pointQuery,
                    Motion motion)
        Moves the mouse to the (x,y) position specified by the given PointQuery.query() using the specified motion (see: Motion) and clicks whatever is under it.
        Parameters:
        pointQuery - the pointQuery to move to
        motion - the type of motion to use for movement
      • moveBy

        default void moveBy​(double x,
                            double y)
        Moves the mouse directly (see: Motion.DIRECT from the current location to the given (x, y) location.
        Parameters:
        x - the amount by which to directly move the mouse horizontally
        y - the amount by which to directly move the mouse vertically
      • moveBy

        void moveBy​(double x,
                    double y,
                    Motion motion)
        Moves the mouse from the current location to the given (x, y) location. The movement is done using the given Motion.
        Parameters:
        x - the amount by which to move the mouse horizontally
        y - the amount by which to move the mouse vertically
        motion - the type of motion to use for movement