public class RobotFactory extends Object
Robot
s.Constructor and Description |
---|
RobotFactory() |
Modifier and Type | Method and Description |
---|---|
Robot |
newRobotInLeftScreen()
Creates a new AWT
Robot object in the coordinate system of the left screen (in terms of coordinates). |
Robot |
newRobotInPrimaryScreen()
Creates a new AWT
Robot object in the coordinate system of the primary screen. |
@Nonnull public Robot newRobotInPrimaryScreen() throws AWTException
Robot
object in the coordinate system of the primary screen.Robot
.AWTException
- if the platform configuration does not allow low-level input control. This exception is always
thrown when GraphicsEnvironment.isHeadless()
returns true
.SecurityException
- if createRobot
permission is not granted.@Nonnull public Robot newRobotInLeftScreen() throws AWTException
Robot
object in the coordinate system of the left screen (in terms of coordinates).Robot
.AWTException
- if the platform configuration does not allow low-level input control. This exception is always
thrown when GraphicsEnvironment.isHeadless()
returns true
.SecurityException
- if createRobot
permission is not granted.Copyright © 2014-2015 AssertJ. All Rights Reserved.