com.jogamp.newt.awt
Class NewtFactoryAWT

java.lang.Object
  extended by com.jogamp.newt.NewtFactory
      extended by com.jogamp.newt.awt.NewtFactoryAWT

public class NewtFactoryAWT
extends NewtFactory


Field Summary
static boolean DEBUG_IMPLEMENTATION
           
 
Constructor Summary
NewtFactoryAWT()
           
 
Method Summary
static NativeWindow getNativeWindow(Component awtComp, CapabilitiesImmutable capsRequested)
           
static NativeWindow getNativeWindow(Object awtCompObject, CapabilitiesImmutable capsRequested)
          Wraps an AWT component into a NativeWindow utilizing the NativeWindowFactory,
using a configuration agnostic dummy DefaultGraphicsConfiguration.
 
Methods inherited from class com.jogamp.newt.NewtFactory
createCompatibleScreen, createCompatibleScreen, createDisplay, createDisplay, createDisplay, createDisplay, createDisplay, createScreen, createWindow, createWindow, createWindow, createWindow, createWindow, createWindowImpl, createWindowImpl, createWindowImpl, createWindowImpl, getCustomClass, isScreenCompatible, setUseEDT, useEDT
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG_IMPLEMENTATION

public static final boolean DEBUG_IMPLEMENTATION
Constructor Detail

NewtFactoryAWT

public NewtFactoryAWT()
Method Detail

getNativeWindow

public static NativeWindow getNativeWindow(Object awtCompObject,
                                           CapabilitiesImmutable capsRequested)
Wraps an AWT component into a NativeWindow utilizing the NativeWindowFactory,
using a configuration agnostic dummy DefaultGraphicsConfiguration.

The actual wrapping implementation is JAWTWindow.

Purpose of this wrapping is to access the AWT window handle,
not to actually render into it.
Hence the dummy configuration only.

Parameters:
awtCompObject - must be of type java.awt.Component

getNativeWindow

public static NativeWindow getNativeWindow(Component awtComp,
                                           CapabilitiesImmutable capsRequested)


Copyright 2010 JogAmp Community.