Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.java.awt.peer.gtk
Class GdkRobotPeer  view GdkRobotPeer download GdkRobotPeer.java

java.lang.Object
  extended bygnu.java.awt.peer.gtk.GdkRobotPeer
All Implemented Interfaces:
java.awt.peer.RobotPeer

public class GdkRobotPeer
extends java.lang.Object
implements java.awt.peer.RobotPeer

Implements the RobotPeer interface using the XTest extension.


Field Summary
(package private) static java.awt.image.ColorModel cm
           
 
Constructor Summary
GdkRobotPeer(java.awt.GraphicsDevice screen)
           
 
Method Summary
 int getRGBPixel(int x, int y)
           
 int[] getRGBPixels(java.awt.Rectangle r)
           
(package private)  boolean initXTest()
           
 void keyPress(int keycode)
           
 void keyRelease(int keycode)
           
 void mouseMove(int x, int y)
           
 void mousePress(int buttons)
           
 void mouseRelease(int buttons)
           
 void mouseWheel(int wheelAmt)
           
(package private)  int[] nativeGetRGBPixels(int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cm

static final java.awt.image.ColorModel cm
Constructor Detail

GdkRobotPeer

public GdkRobotPeer(java.awt.GraphicsDevice screen)
             throws java.awt.AWTException
Method Detail

initXTest

boolean initXTest()

mouseMove

public void mouseMove(int x,
                      int y)
Specified by:
mouseMove in interface java.awt.peer.RobotPeer

mousePress

public void mousePress(int buttons)
Specified by:
mousePress in interface java.awt.peer.RobotPeer

mouseRelease

public void mouseRelease(int buttons)
Specified by:
mouseRelease in interface java.awt.peer.RobotPeer

mouseWheel

public void mouseWheel(int wheelAmt)
Specified by:
mouseWheel in interface java.awt.peer.RobotPeer

keyPress

public void keyPress(int keycode)
Specified by:
keyPress in interface java.awt.peer.RobotPeer

keyRelease

public void keyRelease(int keycode)
Specified by:
keyRelease in interface java.awt.peer.RobotPeer

nativeGetRGBPixels

int[] nativeGetRGBPixels(int x,
                         int y,
                         int width,
                         int height)

getRGBPixel

public int getRGBPixel(int x,
                       int y)
Specified by:
getRGBPixel in interface java.awt.peer.RobotPeer

getRGBPixels

public int[] getRGBPixels(java.awt.Rectangle r)
Specified by:
getRGBPixels in interface java.awt.peer.RobotPeer