NativeWindow interface,
which provides a platform-independent mechanism of accessing the
information required to perform operations like
hardware-accelerated rendering using the OpenGL API.
FIXME: Bug 973 Needs service provider interface (SPI) for TK dependent implementation
| Modifier and Type | Field and Description |
|---|---|
| private static final List | |
| protected static final boolean | |
| private static NativeWindowFactory | |
| private static boolean | |
| private static final String | |
| private static boolean | |
| private static boolean | |
| private static volatile boolean | |
| private static final String | |
| private static ToolkitLock | |
| private static Class | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static Map | |
| private static boolean | |
| public static final String | TYPE_ANDROID
Android/EGL type, as retrieved with |
| public static final String | TYPE_AWT
Generic AWT type, as retrieved with |
| public static final String | TYPE_BCM_VC_IV
Broadcom VC IV/EGL type, as retrieved with |
| public static final String | TYPE_DEFAULT
Generic DEFAULT type, where platform implementation don't care, as retrieved with |
| public static final String | TYPE_EGL
OpenKODE/EGL type, as retrieved with |
| public static final String | TYPE_MACOSX
Mac OS X type, as retrieved with |
| public static final String | TYPE_WINDOWS
Microsoft Windows type, as retrieved with |
| public static final String | TYPE_X11
X11 type, as retrieved with |
| private static final String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public static void | addCustomShutdownHook(final boolean
if true add runnable at the start, otherwise at the end head, final Runnable runnable to be added. runnable)Add a custom shutdown hook to be performed at JVM shutdown before shutting down NativeWindowFactory instance. |
| public static AbstractGraphicsDevice | createDevice(final String displayConnection, final boolean own)
Creates a native device type, following |
| public static AbstractGraphicsDevice | createDevice(final String nwt, final String displayConnection, final boolean own)
Creates a native device type, following the given |
| public static AbstractGraphicsScreen | Returns: newly created AbstractGraphicsScreen matching device's native type-1 is default screen of the given device, e.g. maybe 0 or determined by native API. >= 0 is specific screen screen)
|
| public static NativeWindow | createWrappedWindow(final AbstractGraphicsScreen aScreen, final long surfaceHandle, final long windowHandle, final UpstreamWindowHookMutableSizePos hook)
Creates a wrapped |
| public static ToolkitLock | |
| public static String | |
| public static String | |
| public static NativeWindowFactory | |
| public static ToolkitLock | getDefaultToolkitLock()
Provides the system default |
| public static ToolkitLock | |
| public static ToolkitLock | getDefaultToolkitLock(final String type, final long deviceHandle)
Provides the default |
| public static NativeWindowFactory | getFactory(final Class<?> windowClass)
Returns the appropriate NativeWindowFactory to handle window objects of the given type. |
| public static PointImmutable | Returns: top-left client-area position in window unitsFIXME: Bug 973 Needs service provider interface (SPI) for TK dependent implementation
|
| public static NativeWindow | getNativeWindow(final Object winObj, final AbstractGraphicsConfiguration config)
Converts the given window object and it's
|
| protected abstract NativeWindow | getNativeWindowImpl(Object winObj, AbstractGraphicsConfiguration config)
Performs the conversion from a toolkit's window object to a NativeWindow. |
| public static String | Returns: the native window type, e.g.TYPE_X11, which is canonical via String#intern().
Hence String#equals(Object) and == produce the same result.if false return the native value, if true return a custom value if set, otherwise fallback to the native value. useCustom)
|
| public static ToolkitLock | |
| public static OffscreenLayerSurface | getOffscreenLayerSurface(final NativeSurface
The surface to query. surface, final boolean If true, only return the enabled ifEnabled)OffscreenLayerSurface, see OffscreenLayerOption#isOffscreenLayerSurfaceEnabled().Returns the |
| private static final boolean | |
| public static synchronized void | |
| private static void | |
| public static boolean | |
| public static synchronized boolean | |
| public static final boolean | |
| public static boolean | isNativeVisualIDValidForProcessing(final int visualID)
Returns true if the given visualID is valid for further processing, i.e. OpenGL usage, otherwise return false. |
| protected static void | registerFactory(final Class<?> windowClass, final NativeWindowFactory factory)
Registers a NativeWindowFactory handling window objects of the given class. |
| public static boolean | |
| public static void | |
| public static synchronized void | |
| private static void |
| customShutdownHooks | back to summary |
|---|---|
| private static final List<Runnable> customShutdownHooks | |
| DEBUG | back to summary |
|---|---|
| protected static final boolean DEBUG | |
| defaultFactory | back to summary |
|---|---|
| private static NativeWindowFactory defaultFactory | |
| desktopHasThreadingIssues | back to summary |
|---|---|
| private static boolean desktopHasThreadingIssues | |
| GDIClassName | back to summary |
|---|---|
| private static final String GDIClassName
| |
| initialized | back to summary |
|---|---|
| private static boolean initialized | |
| isAWTAvailable | back to summary |
|---|---|
| private static boolean isAWTAvailable | |
| isJVMShuttingDown | back to summary |
|---|---|
| private static volatile boolean isJVMShuttingDown | |
| JAWTUtilClassName | back to summary |
|---|---|
| private static final String JAWTUtilClassName | |
| jawtUtilJAWTToolkitLock | back to summary |
|---|---|
| private static ToolkitLock jawtUtilJAWTToolkitLock | |
| nativeWindowClass | back to summary |
|---|---|
| private static Class<?> nativeWindowClass | |
| nativeWindowingTypeCustom | back to summary |
|---|---|
| private static final String nativeWindowingTypeCustom | |
| nativeWindowingTypePure | back to summary |
|---|---|
| private static final String nativeWindowingTypePure | |
| OSXUtilClassName | back to summary |
|---|---|
| private static final String OSXUtilClassName
| |
| registeredFactories | back to summary |
|---|---|
| private static Map<Class<?>, NativeWindowFactory> registeredFactories | |
| requiresToolkitLock | back to summary |
|---|---|
| private static boolean requiresToolkitLock | |
| TYPE_ANDROID | back to summary |
|---|---|
| public static final String TYPE_ANDROID Android/EGL type, as retrieved with | |
| TYPE_AWT | back to summary |
|---|---|
| public static final String TYPE_AWT Generic AWT type, as retrieved with | |
| TYPE_BCM_VC_IV | back to summary |
|---|---|
| public static final String TYPE_BCM_VC_IV Broadcom VC IV/EGL type, as retrieved with | |
| TYPE_DEFAULT | back to summary |
|---|---|
| public static final String TYPE_DEFAULT Generic DEFAULT type, where platform implementation don't care, as retrieved with | |
| TYPE_EGL | back to summary |
|---|---|
| public static final String TYPE_EGL OpenKODE/EGL type, as retrieved with | |
| TYPE_MACOSX | back to summary |
|---|---|
| public static final String TYPE_MACOSX Mac OS X type, as retrieved with | |
| TYPE_WINDOWS | back to summary |
|---|---|
| public static final String TYPE_WINDOWS Microsoft Windows type, as retrieved with | |
| TYPE_X11 | back to summary |
|---|---|
| public static final String TYPE_X11 X11 type, as retrieved with | |
| X11UtilClassName | back to summary |
|---|---|
| private static final String X11UtilClassName
| |
| NativeWindowFactory | back to summary |
|---|---|
| protected NativeWindowFactory() Creates a new NativeWindowFactory instance. End users do not need to call this method. | |
| _getNativeWindowingType | back to summary |
|---|---|
| private static String _getNativeWindowingType() | |
| addCustomShutdownHook | back to summary |
|---|---|
| public static void addCustomShutdownHook(final boolean head, final Runnable runnable) Add a custom shutdown hook to be performed at JVM shutdown before shutting down NativeWindowFactory instance.
| |
| createDevice | back to summary |
|---|---|
| public static AbstractGraphicsDevice createDevice(final String displayConnection, final boolean own) Creates a native device type, following
The device will be opened if | |
| createDevice | back to summary |
|---|---|
| public static AbstractGraphicsDevice createDevice(final String nwt, final String displayConnection, final boolean own) Creates a native device type, following the given
The device will be opened if FIXME: Bug 973 Needs service provider interface (SPI) for TK dependent implementation | |
| createScreen | back to summary |
|---|---|
public static AbstractGraphicsScreen createScreen(final AbstractGraphicsDevice device, int screen)
| |
| createWrappedWindow | back to summary |
|---|---|
| public static NativeWindow createWrappedWindow(final AbstractGraphicsScreen aScreen, final long surfaceHandle, final long windowHandle, final UpstreamWindowHookMutableSizePos hook) Creates a wrapped
The given
The
The | |
| getAWTToolkitLock | back to summary |
|---|---|
| public static ToolkitLock getAWTToolkitLock() Returns the AWT
The JAWT based | |
| getDefaultDisplayConnection | back to summary |
|---|---|
| public static String getDefaultDisplayConnection() | |
| getDefaultDisplayConnection | back to summary |
|---|---|
| public static String getDefaultDisplayConnection(final String nwt) | |
| getDefaultFactory | back to summary |
|---|---|
| public static NativeWindowFactory getDefaultFactory() Gets the default NativeWindowFactory. | |
| getDefaultToolkitLock | back to summary |
|---|---|
| public static ToolkitLock getDefaultToolkitLock() Provides the system default | |
| getDefaultToolkitLock | back to summary |
|---|---|
| public static ToolkitLock getDefaultToolkitLock(final String type) Provides the default
| |
| getDefaultToolkitLock | back to summary |
|---|---|
| public static ToolkitLock getDefaultToolkitLock(final String type, final long deviceHandle) Provides the default
| |
| getFactory | back to summary |
|---|---|
| public static NativeWindowFactory getFactory(final Class<?> windowClass) throws IllegalArgumentException Returns the appropriate NativeWindowFactory to handle window
objects of the given type. The windowClass might be | |
| getLocationOnScreen | back to summary |
|---|---|
public static PointImmutable getLocationOnScreen(final NativeWindow nw)
| |
| getNativeWindow | back to summary |
|---|---|
| public static NativeWindow getNativeWindow(final Object winObj, final AbstractGraphicsConfiguration config) throws IllegalArgumentException, NativeWindowException Converts the given window object and it's
| |
| getNativeWindowImpl | back to summary |
|---|---|
| protected abstract NativeWindow getNativeWindowImpl(Object winObj, AbstractGraphicsConfiguration config) throws IllegalArgumentException Performs the conversion from a toolkit's window object to a NativeWindow. Implementors of concrete NativeWindowFactory subclasses should override this method. | |
| getNativeWindowType | back to summary |
|---|---|
public static String getNativeWindowType(final boolean useCustom)
| |
| getNullToolkitLock | back to summary |
|---|---|
| public static ToolkitLock getNullToolkitLock() | |
| getOffscreenLayerSurface | back to summary |
|---|---|
| public static OffscreenLayerSurface getOffscreenLayerSurface(final NativeSurface surface, final boolean ifEnabled) Returns the
In case this surface is a
| |
| guessBroadcomVCIV | back to summary |
|---|---|
| private static final boolean guessBroadcomVCIV() | |
| initSingleton | back to summary |
|---|---|
| public static synchronized void initSingleton() Static one time initialization of this factory. | |
| initSingletonNativeImpl | back to summary |
|---|---|
| private static void initSingletonNativeImpl(final ClassLoader cl) | |
| isAWTAvailable | back to summary |
|---|---|
public static boolean isAWTAvailable()
| |
| isInitialized | back to summary |
|---|---|
| public static synchronized boolean isInitialized() Returns true if | |
| isJVMShuttingDown | back to summary |
|---|---|
| public static final boolean isJVMShuttingDown() Returns true if the JVM is shutting down, otherwise false. | |
| isNativeVisualIDValidForProcessing | back to summary |
|---|---|
| public static boolean isNativeVisualIDValidForProcessing(final int visualID) Returns true if the given visualID is valid for further processing, i.e. OpenGL usage, otherwise return false. On certain platforms, i.e. X11, a valid visualID is required at window creation. Other platforms may determine it later on, e.g. OSX and Windows.
If the visualID is FIXME: Bug 973 Needs service provider interface (SPI) for TK dependent implementation | |
| registerFactory | back to summary |
|---|---|
| protected static void registerFactory(final Class<?> windowClass, final NativeWindowFactory factory) Registers a NativeWindowFactory handling window objects of the given class. This does not need to be called by end users, only implementors of new NativeWindowFactory subclasses. | |
| requiresToolkitLock | back to summary |
|---|---|
public static boolean requiresToolkitLock()
| |
| setDefaultFactory | back to summary |
|---|---|
| public static void setDefaultFactory(final NativeWindowFactory factory) Sets the default NativeWindowFactory. | |
| shutdown | back to summary |
|---|---|
| public static synchronized void shutdown(final boolean _isJVMShuttingDown) Cleanup resources at JVM shutdown | |
| shutdownNativeImpl | back to summary |
|---|---|
| private static void shutdownNativeImpl(final ClassLoader cl) | |