1. /*
  2. * @(#)RobotPeer.java 1.4 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.awt.peer;
  11. import java.awt.*;
  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.* hierarhy; it is not to be considered public and is subject
  18. * to change.
  19. *
  20. * @version 00/02/02
  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. public void keyPress(int keycode);
  29. public void keyRelease(int keycode);
  30. public int getRGBPixel(int x, int y);
  31. public int [] getRGBPixels(Rectangle bounds);
  32. }