@Unstable public class GlassRobotAdapter extends Object implements RobotAdapter<com.sun.glass.ui.Robot>
Modifier and Type | Field and Description |
---|---|
static int |
BYTE_BUFFER_BYTES_PER_COMPONENT |
static Map<MouseButton,Integer> |
GLASS_BUTTONS |
static int |
INT_BUFFER_BYTES_PER_COMPONENT |
static int |
RETRIEVAL_TIMEOUT_IN_MILLIS |
Constructor and Description |
---|
GlassRobotAdapter() |
Modifier and Type | Method and Description |
---|---|
Color |
getCapturePixelColor(Point2D location) |
Image |
getCaptureRegion(Rectangle2D region) |
Point2D |
getMouseLocation() |
com.sun.glass.ui.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 int RETRIEVAL_TIMEOUT_IN_MILLIS
public static final int BYTE_BUFFER_BYTES_PER_COMPONENT
public static final int INT_BUFFER_BYTES_PER_COMPONENT
public static final Map<MouseButton,Integer> GLASS_BUTTONS
public void robotCreate()
robotCreate
in interface RobotAdapter<com.sun.glass.ui.Robot>
public void robotDestroy()
robotDestroy
in interface RobotAdapter<com.sun.glass.ui.Robot>
public com.sun.glass.ui.Robot getRobotInstance()
getRobotInstance
in interface RobotAdapter<com.sun.glass.ui.Robot>
public void keyPress(KeyCode key)
keyPress
in interface RobotAdapter<com.sun.glass.ui.Robot>
public void keyRelease(KeyCode key)
keyRelease
in interface RobotAdapter<com.sun.glass.ui.Robot>
public Point2D getMouseLocation()
getMouseLocation
in interface RobotAdapter<com.sun.glass.ui.Robot>
public void mouseMove(Point2D location)
mouseMove
in interface RobotAdapter<com.sun.glass.ui.Robot>
public void mousePress(MouseButton button)
mousePress
in interface RobotAdapter<com.sun.glass.ui.Robot>
public void mouseRelease(MouseButton button)
mouseRelease
in interface RobotAdapter<com.sun.glass.ui.Robot>
public void mouseWheel(int wheelAmount)
mouseWheel
in interface RobotAdapter<com.sun.glass.ui.Robot>
public Color getCapturePixelColor(Point2D location)
getCapturePixelColor
in interface RobotAdapter<com.sun.glass.ui.Robot>
public Image getCaptureRegion(Rectangle2D region)
getCaptureRegion
in interface RobotAdapter<com.sun.glass.ui.Robot>
public void timerWaitForIdle()
timerWaitForIdle
in interface RobotAdapter<com.sun.glass.ui.Robot>