KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > awt > peer > RobotPeer


1 /*
2  * @(#)RobotPeer.java 1.9 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.awt.peer;
9
10 import java.awt.*;
11
12 /**
13  * RobotPeer defines an interface whereby toolkits support automated testing
14  * by allowing native input events to be generated from Java code.
15  *
16  * This interface should not be directly imported by code outside the
17  * java.awt.* hierarchy; it is not to be considered public and is subject
18  * to change.
19  *
20  * @version 1.9, 12/19/03
21  * @author Robi Khan
22  */

23 public interface RobotPeer
24 {
25     public void mouseMove(int x, int y);
26     public void mousePress(int buttons);
27     public void mouseRelease(int buttons);
28
29     public void mouseWheel(int wheelAmt);
30
31     public void keyPress(int keycode);
32     public void keyRelease(int keycode);
33
34     public int getRGBPixel(int x, int y);
35     public int [] getRGBPixels(Rectangle bounds);
36 }
37
Popular Tags