com.jniwrapper.util
Class JAWT_DrawingSurface

java.lang.Object
  |
  +--com.jniwrapper.Parameter
        |
        +--com.jniwrapper.Structure
              |
              +--com.jniwrapper.util.JAWT_DrawingSurface

public class JAWT_DrawingSurface
extends Structure

JAWT drawing surface structure. Provides functions to access a native drawing context of an AWT component.


Method Summary
 void freeDrawingSurfaceInfo(Pointer pDsi)
          Frees the drawing surface info.
 void getDrawingSurfaceInfo(Pointer pDsi)
          Reads the native drawing surface information.
 int lock()
          Locks this drawing surface.
 void unlock()
          Unlocks this drawing surface.
 
Methods inherited from class com.jniwrapper.Structure
acceptIOPerformer, addMembers, clone, computeLength, getAlignmentRequirement, getLength, getMember, getMembers, init, init, pop, push, read, setDataBuffer, toString, write
 
Methods inherited from class com.jniwrapper.Parameter
asReturnValue, equals, getAlignedLength, getDataBuffer, getDataBufferOffset, indent, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

lock

public int lock()
Locks this drawing surface. A surface should be locked before its info can be accessed. When done accessing the surface it should be unlocked using the unlock() method.

Returns:
a bitmask with one or more of the following values:
JAWT_LOCK_ERROR - When an error has occurred and the surface could not be locked.
JAWT_LOCK_CLIP_CHANGED - When the clip region has changed.
JAWT_LOCK_BOUNDS_CHANGED - When the bounds of the surface have changed.
JAWT_LOCK_SURFACE_CHANGED - When the surface itself has changed

getDrawingSurfaceInfo

public void getDrawingSurfaceInfo(Pointer pDsi)
Reads the native drawing surface information.

Parameters:
pDsi - a pointer to the JAWT_DrawingSurfaceInfo structure initialized with a proper platform-dependent platformInfo structure. The passed structure will be filled with the drawing surface data.

freeDrawingSurfaceInfo

public void freeDrawingSurfaceInfo(Pointer pDsi)
Frees the drawing surface info.

Parameters:
pDsi - a pointer to the JAWT_DrawingSurfaceInfo structure that was previously filled in by the getDrawingSurfaceInfo method.

unlock

public void unlock()
Unlocks this drawing surface.