quicktime
Class WinJNIDrawingSurface

java.lang.Object
  |
  +--quicktime.WinJNIDrawingSurface

public class WinJNIDrawingSurface
extends java.lang.Object

This class is the equivalent of sun.awt.DrawingSurface in 1.3. From 1.4 onwards the DrawingSurface of awt component cannot be accessed via java awt classes. This class makes calls to the native WinNativeHelper library using JNI , that returns the DrawingSurface for the component . This implementation is just for Windows operating system.


Constructor Summary
WinJNIDrawingSurface()
          Returns the native drawing surface for the component supplied
WinJNIDrawingSurface(java.awt.Component comp)
          Returns the native drawing surface for the component supplied
 
Method Summary
 java.awt.Rectangle getBounds()
          Gets the bounding rectangle of the current drawing surface.
 int getHWnd()
          This is the equivalent of sun.awt.DrawingSurface.getHWnd()
 int lock()
          Locks the drawing surface and returns the lock.
 void unlock()
          Unlocks the drawing surface
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WinJNIDrawingSurface

public WinJNIDrawingSurface(java.awt.Component comp)
Returns the native drawing surface for the component supplied

WinJNIDrawingSurface

public WinJNIDrawingSurface()
Returns the native drawing surface for the component supplied
Method Detail

lock

public int lock()
Locks the drawing surface and returns the lock.
Returns:
lock the lock

unlock

public void unlock()
Unlocks the drawing surface

getBounds

public java.awt.Rectangle getBounds()
Gets the bounding rectangle of the current drawing surface.
Returns:
Rectangle the bounding rectangle

getHWnd

public int getHWnd()
This is the equivalent of sun.awt.DrawingSurface.getHWnd()
Returns:
hwnd the drawing surface hwnd