< prev index next >

src/java.desktop/unix/classes/sun/awt/X11/XRobotPeer.java

Print this page




  88     public void mouseRelease(int buttons) {
  89         mouseReleaseImpl(buttons);
  90     }
  91 
  92     @Override
  93     public void mouseWheel(int wheelAmt) {
  94         mouseWheelImpl(wheelAmt);
  95     }
  96 
  97     @Override
  98     public void keyPress(int keycode) {
  99         keyPressImpl(keycode);
 100     }
 101 
 102     @Override
 103     public void keyRelease(int keycode) {
 104         keyReleaseImpl(keycode);
 105     }
 106 
 107     @Override















 108     public int getRGBPixel(int x, int y) {
 109         int pixelArray[] = new int[1];
 110         getRGBPixelsImpl(xgc, x, y, 1, 1, pixelArray, useGtk);
 111         return pixelArray[0];
 112     }
 113 
 114     @Override
 115     public int [] getRGBPixels(Rectangle bounds) {
 116         int pixelArray[] = new int[bounds.width*bounds.height];
 117         getRGBPixelsImpl(xgc, bounds.x, bounds.y, bounds.width, bounds.height,
 118                             pixelArray, useGtk);
 119         return pixelArray;
 120     }
 121 
 122     private static synchronized native void setup(int numberOfButtons, int[] buttonDownMasks);
 123     private static native void loadNativeLibraries();
 124 
 125     private static synchronized native void mouseMoveImpl(X11GraphicsConfig xgc, int x, int y);
 126     private static synchronized native void mousePressImpl(int buttons);
 127     private static synchronized native void mouseReleaseImpl(int buttons);


  88     public void mouseRelease(int buttons) {
  89         mouseReleaseImpl(buttons);
  90     }
  91 
  92     @Override
  93     public void mouseWheel(int wheelAmt) {
  94         mouseWheelImpl(wheelAmt);
  95     }
  96 
  97     @Override
  98     public void keyPress(int keycode) {
  99         keyPressImpl(keycode);
 100     }
 101 
 102     @Override
 103     public void keyRelease(int keycode) {
 104         keyReleaseImpl(keycode);
 105     }
 106 
 107     @Override
 108     public void keyPressUnicode( int key ) {
 109         // No special functions that implements a unicode key press
 110         // and release in linux platform. Hence not implemented.
 111         throw new UnsupportedOperationException("not implemented");
 112     }
 113 
 114     @Override
 115     public void keyReleaseUnicode( int key ) {
 116         // No special functions that implements a unicode key press
 117         // and release in linux platform. Hence not implemented.
 118         throw new UnsupportedOperationException("not implemented");
 119     }
 120 
 121 
 122     @Override
 123     public int getRGBPixel(int x, int y) {
 124         int pixelArray[] = new int[1];
 125         getRGBPixelsImpl(xgc, x, y, 1, 1, pixelArray, useGtk);
 126         return pixelArray[0];
 127     }
 128 
 129     @Override
 130     public int [] getRGBPixels(Rectangle bounds) {
 131         int pixelArray[] = new int[bounds.width*bounds.height];
 132         getRGBPixelsImpl(xgc, bounds.x, bounds.y, bounds.width, bounds.height,
 133                             pixelArray, useGtk);
 134         return pixelArray;
 135     }
 136 
 137     private static synchronized native void setup(int numberOfButtons, int[] buttonDownMasks);
 138     private static native void loadNativeLibraries();
 139 
 140     private static synchronized native void mouseMoveImpl(X11GraphicsConfig xgc, int x, int y);
 141     private static synchronized native void mousePressImpl(int buttons);
 142     private static synchronized native void mouseReleaseImpl(int buttons);
< prev index next >