com.jogamp.nativewindow.impl.jawt.windows
Class WindowsJAWTWindow

java.lang.Object
  extended by com.jogamp.nativewindow.impl.jawt.JAWTWindow
      extended by com.jogamp.nativewindow.impl.jawt.windows.WindowsJAWTWindow
All Implemented Interfaces:
NativeSurface, NativeWindow, SurfaceUpdatedListener

public class WindowsJAWTWindow
extends JAWTWindow


Field Summary
protected  long windowHandle
           
 
Fields inherited from class com.jogamp.nativewindow.impl.jawt.JAWTWindow
bounds, component, config, DEBUG, drawable
 
Fields inherited from interface javax.media.nativewindow.NativeSurface
LOCK_SUCCESS, LOCK_SURFACE_CHANGED, LOCK_SURFACE_NOT_READY, LOCK_SURFACE_UNLOCKED
 
Constructor Summary
WindowsJAWTWindow(Object comp, AbstractGraphicsConfiguration config)
           
 
Method Summary
protected  Point getLocationOnScreenImpl(int x, int y)
           
 long getWindowHandle()
          Returns the window handle for this NativeWindow.
protected  void invalidate()
           
protected  int lockSurfaceImpl()
           
protected  void unlockSurfaceImpl()
           
protected  void validateNative()
           
 
Methods inherited from class com.jogamp.nativewindow.impl.jawt.JAWTWindow
destroy, getAWTComponent, getBounds, getDisplayHandle, getGraphicsConfiguration, getHeight, getLocationOnScreen, getParent, getScreenIndex, getSurfaceHandle, getSurfaceLockOwner, getWidth, getX, getY, isSurfaceLocked, isSurfaceLockedByOtherThread, lockSurface, setSize, surfaceSwap, surfaceUpdated, surfaceUpdated, toString, unlockSurface, updateBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

windowHandle

protected long windowHandle
Constructor Detail

WindowsJAWTWindow

public WindowsJAWTWindow(Object comp,
                         AbstractGraphicsConfiguration config)
Method Detail

validateNative

protected void validateNative()
                       throws NativeWindowException
Specified by:
validateNative in class JAWTWindow
Throws:
NativeWindowException

invalidate

protected void invalidate()
Overrides:
invalidate in class JAWTWindow

lockSurfaceImpl

protected int lockSurfaceImpl()
                       throws NativeWindowException
Specified by:
lockSurfaceImpl in class JAWTWindow
Throws:
NativeWindowException

unlockSurfaceImpl

protected void unlockSurfaceImpl()
                          throws NativeWindowException
Specified by:
unlockSurfaceImpl in class JAWTWindow
Throws:
NativeWindowException

getWindowHandle

public long getWindowHandle()
Description copied from interface: NativeWindow
Returns the window handle for this NativeWindow.

The window handle shall reflect the platform one for all window related operations, e.g. open, close, resize.

On X11 this returns an entity of type Window.
On Microsoft Windows this returns an entity of type HWND.

Specified by:
getWindowHandle in interface NativeWindow
Overrides:
getWindowHandle in class JAWTWindow

getLocationOnScreenImpl

protected Point getLocationOnScreenImpl(int x,
                                        int y)
Specified by:
getLocationOnScreenImpl in class JAWTWindow


Copyright 2010 JogAmp Community.