public class JAWT
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
JAWT_LOCK_BOUNDS_CHANGED |
static int |
JAWT_LOCK_CLIP_CHANGED |
static int |
JAWT_LOCK_ERROR |
static int |
JAWT_LOCK_SURFACE_CHANGED |
static boolean |
JDK_1_4
Convenience constant to quickly determine which JAWT features to expect.
|
Modifier and Type | Method and Description |
---|---|
static void |
freeDrawingSurface(JAWT_DrawingSurface ds)
Releases the drawing surface.
|
static java.awt.Component |
getComponentFromHandle(Pointer.Void handle)
Gets an AWT component by a given native handle.
|
static JAWT_DrawingSurface |
getDrawingSurface(java.awt.Component component)
Obtains drawing surface for a given component.
|
static void |
lockAWT()
Locks the AWT for synchronization purposes.
|
static void |
unlockAWT()
Unlocks the AWT.
|
public static final boolean JDK_1_4
public static final int JAWT_LOCK_ERROR
public static final int JAWT_LOCK_CLIP_CHANGED
public static final int JAWT_LOCK_BOUNDS_CHANGED
public static final int JAWT_LOCK_SURFACE_CHANGED
public static JAWT_DrawingSurface getDrawingSurface(java.awt.Component component)
freeDrawingSurface()
.component
- the target component (should be a window or a canvas for
native rendering).public static void freeDrawingSurface(JAWT_DrawingSurface ds)
ds
- a drawing surface structure.public static void lockAWT()
public static void unlockAWT()
public static java.awt.Component getComponentFromHandle(Pointer.Void handle)
handle
- a handle.null
if no such component exists.java.lang.UnsupportedOperationException
- if the current JDK version is less than 1.4.