|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NativeWindow
Extend the NativeSurface
interface with windowing
information such as window handle and position.
A window toolkit such as the AWT may either implement this interface
directly with one of its components, or provide and register an
implementation of NativeWindowFactory
which can create NativeWindow objects for its components.
Field Summary |
---|
Fields inherited from interface javax.media.nativewindow.NativeSurface |
---|
LOCK_SUCCESS, LOCK_SURFACE_CHANGED, LOCK_SURFACE_NOT_READY, LOCK_SURFACE_UNLOCKED |
Method Summary | |
---|---|
void |
destroy()
destroys the window and releases windowing related resources. |
Point |
getLocationOnScreen(Point point)
Returns the current absolute location of this window. |
NativeWindow |
getParent()
|
long |
getWindowHandle()
Returns the window handle for this NativeWindow. |
int |
getX()
Returns the current x position of this window, relative to it's parent. |
int |
getY()
Returns the current y position of this window, relative to it's parent. |
Methods inherited from interface javax.media.nativewindow.NativeSurface |
---|
getDisplayHandle, getGraphicsConfiguration, getHeight, getScreenIndex, getSurfaceHandle, getSurfaceLockOwner, getWidth, isSurfaceLocked, isSurfaceLockedByOtherThread, lockSurface, surfaceSwap, unlockSurface |
Methods inherited from interface javax.media.nativewindow.SurfaceUpdatedListener |
---|
surfaceUpdated |
Method Detail |
---|
void destroy()
NativeWindow getParent()
long getWindowHandle()
The window handle shall reflect the platform one for all window related operations, e.g. open, close, resize.
On X11 this returns an entity of type Window.
On Microsoft Windows this returns an entity of type HWND.
int getX()
int getY()
Point getLocationOnScreen(Point point)
point
- if not null,
Point.translate(javax.media.nativewindow.util.Point)
the passed Point
by this location on the screen and return it.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |