APIdia Launch Partner
Top Fields Constructors Methods
sun.awt.X11

pack-priv final Class XRobotPeer

extends Object
implements RobotPeer
Class Inheritance
All Implemented Interfaces
java.awt.peer.RobotPeer
Imports
java.awt.Rectangle, .Toolkit, java.awt.peer.RobotPeer, sun.awt.AWTAccessor, .SunToolkit, .UNIXToolkit, .X11GraphicsConfig, .X11GraphicsDevice, sun.awt.screencast.ScreencastHelper, .XdgDesktopPortal

Field Summary

Modifier and TypeField and Description
private static final boolean
private static volatile boolean
private final X11GraphicsConfig

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
getRGBPixel(int x, int y)

Implements java.awt.peer.RobotPeer.getRGBPixel.

Gets the RGB value of the specified pixel on screen.

public int[]
getRGBPixels(Rectangle bounds)

Implements java.awt.peer.RobotPeer.getRGBPixels.

Gets the RGB values of the specified screen area as an array.

private static synchronized native void
getRGBPixelsImpl(X11GraphicsConfig xgc, int x, int y, int width, int height, int[] pixelArray, boolean isGtkSupported)

public void
keyPress(int keycode)

Implements java.awt.peer.RobotPeer.keyPress.

Simulates a key press of the specified key.

private static synchronized native void
keyPressImpl(int keycode)

public void
keyRelease(int keycode)

Implements java.awt.peer.RobotPeer.keyRelease.

Simulates a key release of the specified key.

private static synchronized native void
keyReleaseImpl(int keycode)

private static native void
public void
mouseMove(int x, int y)

Implements java.awt.peer.RobotPeer.mouseMove.

Moves the mouse pointer to the specified screen location.

private static synchronized native void
mouseMoveImpl(X11GraphicsConfig xgc, int x, int y)

public void
mousePress(int buttons)

Implements java.awt.peer.RobotPeer.mousePress.

Simulates a mouse press with the specified button(s).

private static synchronized native void
mousePressImpl(int buttons)

public void
mouseRelease(int buttons)

Implements java.awt.peer.RobotPeer.mouseRelease.

Simulates a mouse release with the specified button(s).

private static synchronized native void
mouseReleaseImpl(int buttons)

public void
mouseWheel(int wheelAmt)

Implements java.awt.peer.RobotPeer.mouseWheel.

Simulates mouse wheel action.

private static synchronized native void
mouseWheelImpl(int wheelAmt)

private static synchronized native void
setup(int numberOfButtons, int[] buttonDownMasks)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

tryGtkback to summary
private static final boolean tryGtk
useGtkback to summary
private static volatile boolean useGtk
xgcback to summary
private final X11GraphicsConfig xgc

Constructor Detail

XRobotPeerback to summary
pack-priv XRobotPeer(X11GraphicsDevice gd)

Method Detail

getRGBPixelback to summary
public int getRGBPixel(int x, int y)

Implements java.awt.peer.RobotPeer.getRGBPixel.

Doc from java.awt.peer.RobotPeer.getRGBPixel.

Gets the RGB value of the specified pixel on screen.

Annotations
@Override
getRGBPixelsback to summary
public int[] getRGBPixels(Rectangle bounds)

Implements java.awt.peer.RobotPeer.getRGBPixels.

Doc from java.awt.peer.RobotPeer.getRGBPixels.

Gets the RGB values of the specified screen area as an array.

Annotations
@Override
getRGBPixelsImplback to summary
private static synchronized native void getRGBPixelsImpl(X11GraphicsConfig xgc, int x, int y, int width, int height, int[] pixelArray, boolean isGtkSupported)
keyPressback to summary
public void keyPress(int keycode)

Implements java.awt.peer.RobotPeer.keyPress.

Doc from java.awt.peer.RobotPeer.keyPress.

Simulates a key press of the specified key.

Annotations
@Override
keyPressImplback to summary
private static synchronized native void keyPressImpl(int keycode)
keyReleaseback to summary
public void keyRelease(int keycode)

Implements java.awt.peer.RobotPeer.keyRelease.

Doc from java.awt.peer.RobotPeer.keyRelease.

Simulates a key release of the specified key.

Annotations
@Override
keyReleaseImplback to summary
private static synchronized native void keyReleaseImpl(int keycode)
loadNativeLibrariesback to summary
private static native void loadNativeLibraries()
mouseMoveback to summary
public void mouseMove(int x, int y)

Implements java.awt.peer.RobotPeer.mouseMove.

Doc from java.awt.peer.RobotPeer.mouseMove.

Moves the mouse pointer to the specified screen location.

Annotations
@Override
mouseMoveImplback to summary
private static synchronized native void mouseMoveImpl(X11GraphicsConfig xgc, int x, int y)
mousePressback to summary
public void mousePress(int buttons)

Implements java.awt.peer.RobotPeer.mousePress.

Doc from java.awt.peer.RobotPeer.mousePress.

Simulates a mouse press with the specified button(s).

Annotations
@Override
mousePressImplback to summary
private static synchronized native void mousePressImpl(int buttons)
mouseReleaseback to summary
public void mouseRelease(int buttons)

Implements java.awt.peer.RobotPeer.mouseRelease.

Doc from java.awt.peer.RobotPeer.mouseRelease.

Simulates a mouse release with the specified button(s).

Annotations
@Override
mouseReleaseImplback to summary
private static synchronized native void mouseReleaseImpl(int buttons)
mouseWheelback to summary
public void mouseWheel(int wheelAmt)

Implements java.awt.peer.RobotPeer.mouseWheel.

Doc from java.awt.peer.RobotPeer.mouseWheel.

Simulates mouse wheel action.

Annotations
@Override
mouseWheelImplback to summary
private static synchronized native void mouseWheelImpl(int wheelAmt)
setupback to summary
private static synchronized native void setup(int numberOfButtons, int[] buttonDownMasks)