public interface RobotAdapter<T>
| Modifier and Type | Method and Description |
|---|---|
javafx.scene.paint.Color |
getCapturePixelColor(javafx.geometry.Point2D location)
Gets the color of a pixel at the given JavaFx coordinates.
|
javafx.scene.image.Image |
getCaptureRegion(javafx.geometry.Rectangle2D region)
Captures a region of the screen.
|
javafx.geometry.Point2D |
getMouseLocation()
Returns the current position of the cursor in JavaFx coordinates
|
void |
keyPress(javafx.scene.input.KeyCode key)
Function used to make the robot press a key.
|
void |
keyRelease(javafx.scene.input.KeyCode key)
Function used to make the robot release a key.
|
void |
mouseMove(javafx.geometry.Point2D location)
Moves the mouse cursor to the given position in JavaFx coordinates
|
void |
mousePress(javafx.scene.input.MouseButton button)
Makes the robot press a mouse button.
|
void |
mouseRelease(javafx.scene.input.MouseButton button)
Makes the robot release a mouse button.
|
void |
mouseWheel(int wheelAmount)
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. |
void |
robotCreate()
Creates a robot.
|
void |
robotDestroy()
Destroys the robot
|
void robotCreate()
void robotDestroy()
void keyPress(javafx.scene.input.KeyCode key)
key - the key to press (must exist on a keyboard)void keyRelease(javafx.scene.input.KeyCode key)
key - the key to press (must exist on a keyboard)javafx.geometry.Point2D getMouseLocation()
void mouseMove(javafx.geometry.Point2D location)
location - the location in JavaFx coordinates to move the cursor tovoid mousePress(javafx.scene.input.MouseButton button)
button - the button to pressvoid mouseRelease(javafx.scene.input.MouseButton button)
button - the button to releasevoid mouseWheel(int wheelAmount)
wheelAmount - the amount to scrolljavafx.scene.paint.Color getCapturePixelColor(javafx.geometry.Point2D location)
location - of the pixel in JavaFx coordinates, to retrieve the color forjavafx.scene.image.Image getCaptureRegion(javafx.geometry.Rectangle2D region)
region - the region to capture in JavaFx coordinates