| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static MouseState | |
| 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
the x coordinate to get the pixel color from x, double the y coordinate to get the pixel color from y)Implements abstract com. 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.Overrides com. Captures the specified rectangular area of the screen and uses it to fill the given
|
| public void | keyPress(KeyCode
the key to press code)Implements abstract com. Presses the specified |
| public void | keyRelease(KeyCode
the key to release code)Implements abstract com. Releases the specified |
| public void | mouseMove(double
screen coordinate x to move the mouse to x, double screen coordinate y to move the mouse to y)Implements abstract com. Moves the mouse to the specified (x,y) screen coordinates relative to the primary screen. |
| public void | mousePress(MouseButton...
the mouse buttons to press buttons)Implements abstract com. Presses the specified |
| public void | mouseRelease(MouseButton...
the mouse buttons to release buttons)Implements abstract com. Releases the specified |
| public void | mouseWheel(int
the (signed) amount of clicks to scroll the wheel wheelAmt)Implements abstract com. Scrolls the mouse wheel by the specified amount of wheel clicks. |
| MonocleRobot | back to summary |
|---|---|
| pack-priv MonocleRobot() | |
| convertToMouseState | back to summary |
|---|---|
| private static MouseState convertToMouseState(boolean press, MouseState state, MouseButton... buttons) | |
| 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 void getScreenCapture(int x, int y, int width, int height, int[] data, boolean scaleToFit) Overrides com. Doc from com. Captures the specified rectangular area of the screen and uses it to fill the given
| |
| 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
| |