Module org.testfx

Interface ScrollRobot

  • All Known Implementing Classes:
    ScrollRobotImpl

    public interface ScrollRobot
    • Method Summary

      Modifier and Type Method Description
      void scroll​(int amount)
      Scrolls vertically by amount (in terms of ticks of a mouse wheel).
      void scroll​(int positiveAmount, javafx.geometry.HorizontalDirection direction)
      Scrolls horizontally by amount (in terms of ticks of a mouse wheel) in given direction.
      void scroll​(int positiveAmount, javafx.geometry.VerticalDirection direction)
      Scrolls vertically by amount (in terms of ticks of a mouse wheel) in given direction.
      void scrollDown​(int positiveAmount)
      Scrolls down by amount (in terms of ticks of a wheel).
      void scrollLeft​(int positiveAmount)
      Scrolls left by amount (in terms of ticks of a wheel).
      void scrollRight​(int positiveAmount)
      Scrolls right by amount (in terms of ticks of a wheel).
      void scrollUp​(int positiveAmount)
      Scrolls up by amount (in terms of ticks of a mouse wheel).
    • Method Detail

      • scroll

        void scroll​(int amount)
        Scrolls vertically by amount (in terms of ticks of a mouse wheel). If amount is positive we scroll up, if it's negative we scroll down.
        Parameters:
        amount - the number of scroll ticks to scroll
      • scroll

        void scroll​(int positiveAmount,
                    javafx.geometry.VerticalDirection direction)
        Scrolls vertically by amount (in terms of ticks of a mouse wheel) in given direction.
        Parameters:
        positiveAmount - the number of scroll ticks to scroll vertically
        direction - the vertical direction in which to scroll (up or down)
      • scrollUp

        void scrollUp​(int positiveAmount)
        Scrolls up by amount (in terms of ticks of a mouse wheel).
        Parameters:
        positiveAmount - the number of scroll ticks to scroll up
      • scrollDown

        void scrollDown​(int positiveAmount)
        Scrolls down by amount (in terms of ticks of a wheel).
        Parameters:
        positiveAmount - the number of scroll ticks to scroll down
      • scroll

        void scroll​(int positiveAmount,
                    javafx.geometry.HorizontalDirection direction)
        Scrolls horizontally by amount (in terms of ticks of a mouse wheel) in given direction.
        Parameters:
        positiveAmount - the number of scroll ticks to scroll horizontally
        direction - the horizontal direction in which to scroll (left or right)
      • scrollLeft

        void scrollLeft​(int positiveAmount)
        Scrolls left by amount (in terms of ticks of a wheel).
        Parameters:
        positiveAmount - the number of scroll ticks to scroll left
      • scrollRight

        void scrollRight​(int positiveAmount)
        Scrolls right by amount (in terms of ticks of a wheel).
        Parameters:
        positiveAmount - the number of scroll ticks to scroll right