public abstract class GlassRobotAdapter extends java.lang.Object implements RobotAdapter
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
glassRobot |
protected static int |
RETRIEVAL_TIMEOUT_IN_MILLIS |
| Constructor and Description |
|---|
GlassRobotAdapter() |
| Modifier and Type | Method and Description |
|---|---|
static GlassRobotAdapter |
createGlassRobot() |
javafx.scene.image.Image |
getCaptureRegion(javafx.geometry.Rectangle2D region)
Captures a region of the screen.
|
javafx.scene.image.Image |
getCaptureRegionRaw(javafx.geometry.Rectangle2D region) |
protected java.lang.Object |
getRobot() |
protected abstract javafx.scene.image.Image |
getScreenCapture(javafx.geometry.Rectangle2D region,
boolean raw) |
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCapturePixelColor, getMouseLocation, keyPress, keyRelease, mouseMove, mousePress, mouseRelease, robotCreate, robotDestroyprotected static final int RETRIEVAL_TIMEOUT_IN_MILLIS
protected java.lang.Object glassRobot
public static GlassRobotAdapter createGlassRobot()
public final void mouseWheel(int wheelAmount)
RobotAdaptermouseWheel in interface RobotAdapterwheelAmount - the amount to scrollpublic final javafx.scene.image.Image getCaptureRegion(javafx.geometry.Rectangle2D region)
RobotAdaptergetCaptureRegion in interface RobotAdapterregion - the region to capture in JavaFx coordinatespublic final javafx.scene.image.Image getCaptureRegionRaw(javafx.geometry.Rectangle2D region)
protected final java.lang.Object getRobot()
protected abstract javafx.scene.image.Image getScreenCapture(javafx.geometry.Rectangle2D region,
boolean raw)