com.jogamp.nativewindow.impl.jawt
Class JAWTUtil

java.lang.Object
  extended by com.jogamp.nativewindow.impl.jawt.JAWTUtil

public class JAWTUtil
extends Object


Field Summary
protected static boolean DEBUG
           
 
Constructor Summary
JAWTUtil()
           
 
Method Summary
static void awtLock()
          Locks the AWT's global ReentrantLock.
JAWT's native Lock() function calls SunToolkit.awtLock(), which just uses AWT's global ReentrantLock.
static void awtUnlock()
          Unlocks the AWT's global ReentrantLock.
JAWT's native Unlock() function calls SunToolkit.awtUnlock(), which just uses AWT's global ReentrantLock.
static JAWTToolkitLock getJAWTToolkitLock()
           
static boolean hasJava2D()
           
static void initSingleton()
           
static boolean isHeadlessMode()
           
static boolean isJava2DQueueFlusherThread()
           
static void lockToolkit()
           
static void unlockToolkit()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

protected static final boolean DEBUG
Constructor Detail

JAWTUtil

public JAWTUtil()
Method Detail

initSingleton

public static void initSingleton()

hasJava2D

public static final boolean hasJava2D()

isJava2DQueueFlusherThread

public static final boolean isJava2DQueueFlusherThread()

isHeadlessMode

public static boolean isHeadlessMode()

awtLock

public static void awtLock()
Locks the AWT's global ReentrantLock.
JAWT's native Lock() function calls SunToolkit.awtLock(), which just uses AWT's global ReentrantLock.


awtUnlock

public static void awtUnlock()
Unlocks the AWT's global ReentrantLock.
JAWT's native Unlock() function calls SunToolkit.awtUnlock(), which just uses AWT's global ReentrantLock.


lockToolkit

public static void lockToolkit()
                        throws NativeWindowException
Throws:
NativeWindowException

unlockToolkit

public static void unlockToolkit()

getJAWTToolkitLock

public static JAWTToolkitLock getJAWTToolkitLock()


Copyright 2010 JogAmp Community.