| Modifier and Type | Field and Description |
|---|---|
| private long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private native void | |
| private native float | |
| private native float | |
| protected native int | |
| protected native Pixels | |
| private native long | |
| protected native void | |
| protected native void | |
| private native void | |
| private native void | |
| private native void | |
| protected native void | |
| public void | create()
Implements abstract com. Initializes any state necessary for this |
| public void | destroy()
Implements abstract com. Frees any resources allocated by this |
| public double | getMouseX()
Implements abstract com. Returns the current mouse x-position. |
| public double | getMouseY()
Implements abstract com. Returns the current mouse y-position. |
| public Color | getPixelColor(double x, double y)
Implements abstract com. Returns the |
| public WritableImage | getScreenCapture(WritableImage image, double x, double y, double width, double height, boolean scaleToFit)
Overrides com. Returns an |
| public void | keyPress(KeyCode code)
Implements abstract com. Presses the specified |
| public void | keyRelease(KeyCode code)
Implements abstract com. Releases the specified |
| public void | mouseMove(double x, double y)
Implements abstract com. Moves the mouse to the specified (x,y) screen coordinates relative to the primary screen. |
| public void | mousePress(MouseButton... buttons)
Implements abstract com. Presses the specified |
| public void | mouseRelease(MouseButton... buttons)
Implements abstract com. Releases the specified |
| public void | mouseWheel(int wheelAmt)
Implements abstract com. Scrolls the mouse wheel by the specified amount of wheel clicks. |
| ptr | back to summary |
|---|---|
| private long ptr | |
| MacRobot | back to summary |
|---|---|
| pack-priv MacRobot() | |
| _destroy | back to summary |
|---|---|
| private native void _destroy(long ptr) | |
| _getMouseX | back to summary |
|---|---|
| private native float _getMouseX(long ptr) | |
| _getMouseY | back to summary |
|---|---|
| private native float _getMouseY(long ptr) | |
| _getPixelColor | back to summary |
|---|---|
| protected native int _getPixelColor(double x, double y) | |
| _getScreenCapture | back to summary |
|---|---|
| protected native Pixels _getScreenCapture(int x, int y, int width, int height, boolean scaleToFit) | |
| _init | back to summary |
|---|---|
| private native long _init() | |
| _keyPress | back to summary |
|---|---|
| protected native void _keyPress(int code) | |
| _keyRelease | back to summary |
|---|---|
| protected native void _keyRelease(int code) | |
| _mouseMove | back to summary |
|---|---|
| private native void _mouseMove(long ptr, float x, float y) | |
| _mousePress | back to summary |
|---|---|
| private native void _mousePress(long ptr, int buttons) | |
| _mouseRelease | back to summary |
|---|---|
| private native void _mouseRelease(long ptr, int buttons) | |
| _mouseWheel | back to summary |
|---|---|
| protected native void _mouseWheel(int wheelAmt) | |
| create | back to summary |
|---|---|
| public void create() Implements abstract com. Doc from com. Initializes any state necessary for this
| |
| destroy | back to summary |
|---|---|
| public void destroy() Implements abstract com. Doc from com. Frees any resources allocated by this
| |
| getMouseX | back to summary |
|---|---|
| public double getMouseX() Implements abstract com. Doc from com. Returns the current mouse x-position.
| |
| getMouseY | back to summary |
|---|---|
| public double getMouseY() Implements abstract com. Doc from com. Returns the current mouse y-position.
| |
| getPixelColor | back to summary |
|---|---|
| public Color getPixelColor(double x, double y) Implements abstract com. Doc from com. Returns the
| |
| getScreenCapture | back to summary |
|---|---|
| public WritableImage getScreenCapture(WritableImage image, double x, double y, double width, double height, boolean scaleToFit) Overrides com. Doc from com. Returns an
If the
If
| |
| keyPress | back to summary |
|---|---|
| public void keyPress(KeyCode code) Implements abstract com. Doc from com. Presses the specified
| |
| keyRelease | back to summary |
|---|---|
| public void keyRelease(KeyCode code) Implements abstract com. Doc from com. Releases the specified
| |
| mouseMove | back to summary |
|---|---|
| public void mouseMove(double x, double y) Implements abstract com. Doc from com. Moves the mouse to the specified (x,y) screen coordinates relative to the primary screen.
| |
| mousePress | back to summary |
|---|---|
| public void mousePress(MouseButton... buttons) Implements abstract com. Doc from com. Presses the specified
| |
| mouseRelease | back to summary |
|---|---|
| public void mouseRelease(MouseButton... buttons) Implements abstract com. Doc from com. Releases the specified
| |
| mouseWheel | back to summary |
|---|---|
| public void mouseWheel(int wheelAmt) Implements abstract com. Doc from com. Scrolls the mouse wheel by the specified amount of wheel clicks. A positive
| |