@Unstable public class AwtRobotAdapter extends Object implements RobotAdapter<Robot>
Modifier and Type | Field and Description |
---|---|
static Map<MouseButton,Integer> |
AWT_BUTTONS |
Constructor and Description |
---|
AwtRobotAdapter() |
Modifier and Type | Method and Description |
---|---|
Color |
getCapturePixelColor(Point2D location) |
Image |
getCaptureRegion(Rectangle2D region) |
Point2D |
getMouseLocation() |
Robot |
getRobotInstance() |
void |
keyPress(KeyCode key) |
void |
keyRelease(KeyCode key) |
void |
mouseMove(Point2D location) |
void |
mousePress(MouseButton button) |
void |
mouseRelease(MouseButton button) |
void |
mouseWheel(int wheelAmount) |
void |
robotCreate() |
void |
robotDestroy() |
void |
timerWaitForIdle() |
public static final Map<MouseButton,Integer> AWT_BUTTONS
public void robotCreate()
robotCreate
in interface RobotAdapter<Robot>
public void robotDestroy()
robotDestroy
in interface RobotAdapter<Robot>
public Robot getRobotInstance()
getRobotInstance
in interface RobotAdapter<Robot>
public void keyPress(KeyCode key)
keyPress
in interface RobotAdapter<Robot>
public void keyRelease(KeyCode key)
keyRelease
in interface RobotAdapter<Robot>
public Point2D getMouseLocation()
getMouseLocation
in interface RobotAdapter<Robot>
public void mouseMove(Point2D location)
mouseMove
in interface RobotAdapter<Robot>
public void mousePress(MouseButton button)
mousePress
in interface RobotAdapter<Robot>
public void mouseRelease(MouseButton button)
mouseRelease
in interface RobotAdapter<Robot>
public void mouseWheel(int wheelAmount)
mouseWheel
in interface RobotAdapter<Robot>
public Color getCapturePixelColor(Point2D location)
getCapturePixelColor
in interface RobotAdapter<Robot>
public Image getCaptureRegion(Rectangle2D region)
getCaptureRegion
in interface RobotAdapter<Robot>
public void timerWaitForIdle()
timerWaitForIdle
in interface RobotAdapter<Robot>