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 Screen createCompatibleScreen(NativeWindow parent)
           
static NativeWindow getNativeWindow(Component awtComp, Capabilities capsRequested)
           
static NativeWindow getNativeWindow(Object awtCompObject, Capabilities 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
createDisplay, createDisplay, createScreen, createScreen, createWindow, createWindow, createWindow, createWindow, createWindow, createWindow, createWindow, createWindowImpl, createWindowImpl, createWindowImpl, createWindowImpl, setUseEDT, useEDT, wrapDisplay
 
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,
                                           Capabilities 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,
                                           Capabilities capsRequested)

createCompatibleScreen

public static Screen createCompatibleScreen(NativeWindow parent)


Copyright 2010 JogAmp Community.