| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public static Color | |
| protected static WritableImage | |
| public static int | |
| public abstract void | |
| public abstract void | |
| public abstract double | |
| public abstract double | |
| public abstract Color | Returns: the pixel color at the specified screen coordinatesthe x coordinate to get the pixel color from x, double the y coordinate to get the pixel color from y)Returns the |
| public void | getScreenCapture(int
the starting x-position of the rectangular area to capture x, int the starting y-position of the rectangular area to capture y, int the width of the rectangular area to capture width, int the height of the rectangular area to capture height, int[] the array to fill with the raw pixel data corresponding to
the captured region data, boolean If true the returned scaleToFit)Image will be
scaled to fit the request dimensions, if necessary. Otherwise the size
of the returned image will depend on the output scale (DPI) of the primary
screen.Captures the specified rectangular area of the screen and uses it to fill the given
|
| public WritableImage | getScreenCapture(WritableImage image, double
the starting x-position of the rectangular area to capture x, double the starting y-position of the rectangular area to capture y, double the width of the rectangular area to capture width, double the height of the rectangular area to capture height, boolean If true the returned scaleToFit)Image will be
scaled to fit the request dimensions, if necessary. Otherwise the size
of the returned image will depend on the output scale (DPI) of the primary
screen.Returns an |
| private static int | |
| private static int | |
| public abstract void | |
| public abstract void | |
| public abstract void | mouseMove(double
screen coordinate x to move the mouse to x, double screen coordinate y to move the mouse to y)Moves the mouse to the specified (x,y) screen coordinates relative to the primary screen. |
| public abstract void | |
| public abstract void | mouseRelease(MouseButton...
the mouse buttons to release buttons)Releases the specified |
| public abstract void | mouseWheel(int
the (signed) amount of clicks to scroll the wheel wheelAmt)Scrolls the mouse wheel by the specified amount of wheel clicks. |
| private static void | |
| private static void |
| MOUSE_BACK_BTN | back to summary |
|---|---|
| public static final int MOUSE_BACK_BTN
| |
| MOUSE_FORWARD_BTN | back to summary |
|---|---|
| public static final int MOUSE_FORWARD_BTN
| |
| MOUSE_LEFT_BTN | back to summary |
|---|---|
| public static final int MOUSE_LEFT_BTN
| |
| MOUSE_MIDDLE_BTN | back to summary |
|---|---|
| public static final int MOUSE_MIDDLE_BTN
| |
| MOUSE_RIGHT_BTN | back to summary |
|---|---|
| public static final int MOUSE_RIGHT_BTN
| |
| GlassRobot | back to summary |
|---|---|
| public GlassRobot() | |
| bgraPreToRgbaPre | back to summary |
|---|---|
| private static int bgraPreToRgbaPre(int bgraPre) | |
| convertFromIntArgb | back to summary |
|---|---|
| public static Color convertFromIntArgb(int color) | |
| convertFromPixels | back to summary |
|---|---|
| protected static WritableImage convertFromPixels(WritableImage image, Pixels pixels) | |
| convertToRobotMouseButton | back to summary |
|---|---|
| public static int convertToRobotMouseButton(MouseButton[] buttons) | |
| create | back to summary |
|---|---|
| public abstract void create() Initializes any state necessary for this | |
| destroy | back to summary |
|---|---|
| public abstract void destroy() Frees any resources allocated by this | |
| getMouseX | back to summary |
|---|---|
| public abstract double getMouseX() Returns the current mouse x-position.
| |
| getMouseY | back to summary |
|---|---|
| public abstract double getMouseY() Returns the current mouse y-position.
| |
| getPixelColor | back to summary |
|---|---|
| public abstract Color getPixelColor(double x, double y) Returns the
| |
| getScreenCapture | back to summary |
|---|---|
| public void getScreenCapture(int x, int y, int width, int height, int[] data, boolean scaleToFit) Captures the specified rectangular area of the screen and uses it to fill the given
| |
| getScreenCapture | back to summary |
|---|---|
| public WritableImage getScreenCapture(WritableImage image, double x, double y, double width, double height, boolean scaleToFit) Returns an
If the
If
| |
| interp | back to summary |
|---|---|
| private static int interp(int[] pixels, int x, int y, int w, int h, int fractx1, int fracty1) | |
| interp | back to summary |
|---|---|
| private static int interp(int rgb0, int rgb1, int fract0, int fract1) | |
| keyPress | back to summary |
|---|---|
| public abstract void keyPress(KeyCode keyCode) Presses the specified
| |
| keyRelease | back to summary |
|---|---|
| public abstract void keyRelease(KeyCode keyCode) Releases the specified
| |
| mouseMove | back to summary |
|---|---|
| public abstract void mouseMove(double x, double y) Moves the mouse to the specified (x,y) screen coordinates relative to the primary screen.
| |
| mousePress | back to summary |
|---|---|
| public abstract void mousePress(MouseButton... buttons) Presses the specified
| |
| mouseRelease | back to summary |
|---|---|
| public abstract void mouseRelease(MouseButton... buttons) Releases the specified
| |
| mouseWheel | back to summary |
|---|---|
| public abstract void mouseWheel(int wheelAmt) Scrolls the mouse wheel by the specified amount of wheel clicks. A positive
| |
| writeByteBufferToImage | back to summary |
|---|---|
| private static void writeByteBufferToImage(ByteBuffer byteBuffer, WritableImage image) | |
| writeIntBufferToImage | back to summary |
|---|---|
| private static void writeIntBufferToImage(IntBuffer intBuffer, WritableImage image) | |