java.awt.peer
Interface RobotPeer


public interface RobotPeer

Disabled: no SafeJ information.

RobotPeer defines an interface whereby toolkits support automated testing by allowing native input events to be generated from Java code. This interface should not be directly imported by code outside the java.awt.* hierarchy; it is not to be considered public and is subject to change.


Method Summary
 void dispose()
          Disposes the robot peer when it is not needed anymore.
 int getRGBPixel(int x, int y)
          Gets the RGB value of the specified pixel on screen.
 int[] getRGBPixels(Rectangle bounds)
          Gets the RGB values of the specified screen area as an array.
 void keyPress(int keycode)
          Simulates a key press of the specified key.
 void keyRelease(int keycode)
          Simulates a key release of the specified key.
 void mouseMove(int x, int y)
          Moves the mouse pointer to the specified screen location.
 void mousePress(int buttons)
          Simulates a mouse press with the specified button(s).
 void mouseRelease(int buttons)
          Simulates a mouse release with the specified button(s).
 void mouseWheel(int wheelAmt)
          Simulates mouse wheel action.
 

Method Detail

mouseMove

void mouseMove(int x,
               int y)
Class is disabled.

Moves the mouse pointer to the specified screen location.

Parameters:
x - the X location on screen
y - the Y location on screen
See Also:
Robot.mouseMove(int, int)

mousePress

void mousePress(int buttons)
Class is disabled.

Simulates a mouse press with the specified button(s).

Parameters:
buttons - the button mask
See Also:
Robot.mousePress(int)

mouseRelease

void mouseRelease(int buttons)
Class is disabled.

Simulates a mouse release with the specified button(s).

Parameters:
buttons - the button mask
See Also:
Robot.mouseRelease(int)

mouseWheel

void mouseWheel(int wheelAmt)
Class is disabled.

Simulates mouse wheel action.

Parameters:
wheelAmt - number of notches to move the mouse wheel
See Also:
Robot.mouseWheel(int)

keyPress

void keyPress(int keycode)
Class is disabled.

Simulates a key press of the specified key.

Parameters:
keycode - the key code to press
See Also:
Robot.keyPress(int)

keyRelease

void keyRelease(int keycode)
Class is disabled.

Simulates a key release of the specified key.

Parameters:
keycode - the key code to release
See Also:
Robot.keyRelease(int)

getRGBPixel

int getRGBPixel(int x,
                int y)
Class is disabled.

Gets the RGB value of the specified pixel on screen.

Parameters:
x - the X screen coordinate
y - the Y screen coordinate
Returns:
the RGB value of the specified pixel on screen
See Also:
Robot.getPixelColor(int, int)

getRGBPixels

int[] getRGBPixels(Rectangle bounds)
Class is disabled.

Gets the RGB values of the specified screen area as an array.

Parameters:
bounds - the screen area to capture the RGB values from
Returns:
the RGB values of the specified screen area
See Also:
Robot.createScreenCapture(Rectangle)

dispose

void dispose()
Class is disabled.

Disposes the robot peer when it is not needed anymore.