Module org.testfx

Class ScrollRobotImpl

    • 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).
    • Constructor Detail

      • ScrollRobotImpl

        public ScrollRobotImpl​(MouseRobot mouseRobot)
    • Method Detail

      • scroll

        public void scroll​(int amount)
        Description copied from interface: ScrollRobot
        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.
        Specified by:
        scroll in interface ScrollRobot
        Parameters:
        amount - the number of scroll ticks to scroll
      • scroll

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

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

        public void scrollDown​(int positiveAmount)
        Description copied from interface: ScrollRobot
        Scrolls down by amount (in terms of ticks of a wheel).
        Specified by:
        scrollDown in interface ScrollRobot
        Parameters:
        positiveAmount - the number of scroll ticks to scroll down
      • scroll

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

        public void scrollRight​(int positiveAmount)
        Description copied from interface: ScrollRobot
        Scrolls right by amount (in terms of ticks of a wheel).
        Specified by:
        scrollRight in interface ScrollRobot
        Parameters:
        positiveAmount - the number of scroll ticks to scroll right
      • scrollLeft

        public void scrollLeft​(int positiveAmount)
        Description copied from interface: ScrollRobot
        Scrolls left by amount (in terms of ticks of a wheel).
        Specified by:
        scrollLeft in interface ScrollRobot
        Parameters:
        positiveAmount - the number of scroll ticks to scroll left