|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.newt.impl.WindowImpl
com.jogamp.newt.impl.awt.AWTWindow
public class AWTWindow
An implementation of the Newt Window class built using the AWT. This is provided for convenience of porting to platforms supporting Java SE.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jogamp.newt.impl.WindowImpl |
---|
WindowImpl.LifecycleHook |
Nested classes/interfaces inherited from interface com.jogamp.newt.Window |
---|
Window.FocusRunnable, Window.ReparentAction |
Field Summary |
---|
Fields inherited from class com.jogamp.newt.impl.WindowImpl |
---|
capabilitiesChooser, capsRequested, config, DEBUG_TEST_REPARENT_INCOMPATIBLE, fullscreen, hasFocus, height, nfs_height, nfs_width, nfs_x, nfs_y, title, undecorated, visible, width, x, y |
Fields inherited from interface com.jogamp.newt.Window |
---|
DEBUG_IMPLEMENTATION, DEBUG_KEY_EVENT, DEBUG_MOUSE_EVENT, DEBUG_WINDOW_EVENT, TIMEOUT_NATIVEWINDOW |
Fields inherited from interface javax.media.nativewindow.NativeSurface |
---|
LOCK_SUCCESS, LOCK_SURFACE_CHANGED, LOCK_SURFACE_NOT_READY, LOCK_SURFACE_UNLOCKED |
Fields inherited from interface javax.media.nativewindow.WindowClosingProtocol |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE |
Constructor Summary | |
---|---|
AWTWindow()
|
|
AWTWindow(Container container)
|
Method Summary | |
---|---|
protected void |
closeNativeImpl()
|
protected void |
createNativeImpl()
The native implementation must set the native windowHandle. The implementation should invoke the referenced java state callbacks to notify this Java object of state changes. |
static Class[] |
getCustomConstructorArgumentTypes()
|
Insets |
getInsets()
Returns the insets for this native window (the difference between the size of the toplevel window with the decorations and the client area). |
protected Point |
getLocationOnScreenImpl(int x,
int y)
Return screen coordinates of the given coordinates or null, in which case a NativeWindow traversal shall being used as demonstrated in WindowImpl.getLocationOnScreen(javax.media.nativewindow.util.Point) . |
Object |
getWrappedWindow()
If this Window actually wraps one from another toolkit such as the AWT, this will return a non-null value. |
boolean |
hasDeviceChanged()
If the implementation is capable of detecting a device change return true and clear the status/reason of the change. |
protected boolean |
reconfigureWindowImpl(int x,
int y,
int width,
int height,
boolean parentChange,
int fullScreenChange,
int decorationChange)
The native implementation should invoke the referenced java state callbacks to notify this Java object of state changes. |
protected void |
requestFocusImpl(boolean reparented)
The native implementation must invoke WindowImpl.focusChanged(boolean)
to change the focus state, if force == false . |
protected void |
setTitleImpl(String title)
|
protected void |
setVisibleImpl(boolean visible,
int x,
int y,
int width,
int height)
The native implementation must invoke WindowImpl.visibleChanged(boolean)
to change the visibility state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AWTWindow()
public AWTWindow(Container container)
Method Detail |
---|
public static Class[] getCustomConstructorArgumentTypes()
protected void requestFocusImpl(boolean reparented)
WindowImpl
WindowImpl.focusChanged(boolean)
to change the focus state, if force == false
.
This may happen asynchronous within Window.TIMEOUT_NATIVEWINDOW
.
requestFocusImpl
in class WindowImpl
reparented
- if true, bypass WindowImpl.focusChanged(boolean)
and force focus requestprotected void setTitleImpl(String title)
setTitleImpl
in class WindowImpl
protected void createNativeImpl()
WindowImpl
createNativeImpl
in class WindowImpl
WindowImpl.windowDestroyNotify()
,
WindowImpl.focusChanged(boolean)
,
WindowImpl.visibleChanged(boolean)
,
#sizeChanged(int,int)
,
WindowImpl.positionChanged(int,int)
,
WindowImpl.windowDestroyNotify()
protected void closeNativeImpl()
closeNativeImpl
in class WindowImpl
public boolean hasDeviceChanged()
WindowImpl
hasDeviceChanged
in class WindowImpl
protected void setVisibleImpl(boolean visible, int x, int y, int width, int height)
WindowImpl
WindowImpl.visibleChanged(boolean)
to change the visibility state. This may happen asynchronous within
Window.TIMEOUT_NATIVEWINDOW
.
setVisibleImpl
in class WindowImpl
public Insets getInsets()
Window
getInsets
in interface Window
getInsets
in class WindowImpl
protected boolean reconfigureWindowImpl(int x, int y, int width, int height, boolean parentChange, int fullScreenChange, int decorationChange)
WindowImpl
reconfigureWindowImpl
in class WindowImpl
x
- -1 if no position change requested, otherwise greater than zeroy
- -1 if no position change requested, otherwise greater than zerowidth
- -1 if no size change requested, otherwise greater than zeroheight
- -1 if no size change requested, otherwise greater than zeroparentChange
- true if reparenting requested, otherwise falsefullScreenChange
- 0 if unchanged, -1 fullscreen off, 1 fullscreen ondecorationChange
- 0 if unchanged, -1 undecorated, 1 decorated#sizeChanged(int,int)
,
WindowImpl.positionChanged(int,int)
protected Point getLocationOnScreenImpl(int x, int y)
WindowImpl
WindowImpl.getLocationOnScreen(javax.media.nativewindow.util.Point)
.
getLocationOnScreenImpl
in class WindowImpl
public Object getWrappedWindow()
WindowImpl
getWrappedWindow
in class WindowImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |