Top Constructors Methods
org.lwjgl.opengl

pack-priv final Class AWTUtil

extends Object
Class Inheritance
Imports
java.awt.Component, .Cursor, .Dimension, .GraphicsConfiguration, .GraphicsDevice, .IllegalComponentStateException, .MouseInfo, .Point, .PointerInfo, .Robot, .Toolkit, java.awt.image.BufferedImage, java.nio.IntBuffer, java.security.AccessController, .PrivilegedActionException, .PrivilegedExceptionAction, org.lwjgl.LWJGLException, .LWJGLUtil

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static Cursor
createCursor(int width, int height, int xHotspot, int yHotspot, int numImages, IntBuffer images, IntBuffer delays)

Native cursor handles

public static Robot
createRobot(final Component component)

public static int
public static Point
getCursorPosition(Component component)

Use the 1.5 API to get the cursor position relative to the component.

public static int
public static int
public static int
private static Point
getPointerLocation(final Component component)

Use reflection to access the JDK 1.5 pointer location, if possible and only if the given component is on the same screen as the cursor.

public static boolean
public static void
setCursorPosition(Component component, Robot robot, int x, int y)

private static int
transformY(Component component, int y)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AWTUtilback to summary
pack-priv AWTUtil()

Method Detail

createCursorback to summary
public static Cursor createCursor(int width, int height, int xHotspot, int yHotspot, int numImages, IntBuffer images, IntBuffer delays) throws LWJGLException

Native cursor handles

createRobotback to summary
public static Robot createRobot(final Component component)
getButtonCountback to summary
public static int getButtonCount()
getCursorPositionback to summary
public static Point getCursorPosition(Component component)

Use the 1.5 API to get the cursor position relative to the component. Return null if it fails (JDK <= 1.4).

getMaxCursorSizeback to summary
public static int getMaxCursorSize()
getMinCursorSizeback to summary
public static int getMinCursorSize()
getNativeCursorCapabilitiesback to summary
public static int getNativeCursorCapabilities()
getPointerLocationback to summary
private static Point getPointerLocation(final Component component)

Use reflection to access the JDK 1.5 pointer location, if possible and only if the given component is on the same screen as the cursor. Return null otherwise.

hasWheelback to summary
public static boolean hasWheel()
setCursorPositionback to summary
public static void setCursorPosition(Component component, Robot robot, int x, int y)
transformYback to summary
private static int transformY(Component component, int y)