Module org.testfx

Class GlassRobotAdapter

    • Field Detail

      • RETRIEVAL_TIMEOUT_IN_MILLIS

        protected static final int RETRIEVAL_TIMEOUT_IN_MILLIS
        See Also:
        Constant Field Values
      • glassRobot

        protected Object glassRobot
    • Constructor Detail

      • GlassRobotAdapter

        public GlassRobotAdapter()
    • Method Detail

      • mouseWheel

        public final void mouseWheel​(int wheelAmount)
        Description copied from interface: RobotAdapter
        Makes the robot to simulate a action of the mouse wheel.
        Negative values indicate movement up/away from the user, positive values indicate movement down/towards the user.
        Specified by:
        mouseWheel in interface RobotAdapter
        Parameters:
        wheelAmount - the amount to scroll
      • getCaptureRegion

        public final javafx.scene.image.Image getCaptureRegion​(javafx.geometry.Rectangle2D region)
        Description copied from interface: RobotAdapter
        Captures a region of the screen. The returned Image is in the JavaFx color space. //TODO Due to technical reasons, there might be a deviation.
        Specified by:
        getCaptureRegion in interface RobotAdapter
        Parameters:
        region - the region to capture in JavaFx coordinates
        Returns:
        a image of the region
      • getCaptureRegionRaw

        public final javafx.scene.image.Image getCaptureRegionRaw​(javafx.geometry.Rectangle2D region)
      • getRobot

        protected final Object getRobot()
      • getScreenCapture

        protected abstract javafx.scene.image.Image getScreenCapture​(javafx.geometry.Rectangle2D region,
                                                                     boolean raw)