|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jniwrapper.util.JAWT
Main JAWT interface class. Provides access to JAWT features of the underlying platform. Refer to the original JAWT documentation for further information.
Field Summary | |
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. |
Constructor Summary | |
JAWT()
|
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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
Constructor Detail |
public JAWT()
Method Detail |
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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |