1. /*
  2. * @(#)RobotPeer.java 1.8 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.awt.peer;
  8. import java.awt.*;
  9. /**
  10. * RobotPeer defines an interface whereby toolkits support automated testing
  11. * by allowing native input events to be generated from Java code.
  12. *
  13. * This interface should not be directly imported by code outside the
  14. * java.awt.* hierarchy; it is not to be considered public and is subject
  15. * to change.
  16. *
  17. * @version 1.8, 01/23/03
  18. * @author Robi Khan
  19. */
  20. public interface RobotPeer
  21. {
  22. public void mouseMove(int x, int y);
  23. public void mousePress(int buttons);
  24. public void mouseRelease(int buttons);
  25. public void mouseWheel(int wheelAmt);
  26. public void keyPress(int keycode);
  27. public void keyRelease(int keycode);
  28. public int getRGBPixel(int x, int y);
  29. public int [] getRGBPixels(Rectangle bounds);
  30. }