| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | DEBUG_CALAYER_POS_CRITICAL
May lead to deadlock, due to AWT pos comparison .. |
| private JAWT_DrawingSurface | |
| private JAWT_DrawingSurfaceInfo | |
| private boolean | |
| private boolean | |
| private long | |
| private JAWT_MacOSXDrawingSurfaceInfo | |
| private long | |
| private boolean | |
| private volatile long | |
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | attachSurfaceLayerImpl(final long layerHandle)
Overrides com. |
| protected void | detachSurfaceLayerImpl(final long layerHandle, final Runnable
Runnable to be called before native detachment detachNotify)Overrides com. |
| private void | |
| protected JAWT | fetchJAWTImpl()
Implements abstract com. getShallUseOffscreenLayer()
and may respect isApplet().
|
| private static native long | |
| public Point | getLocationOnScreen(Point
Optional storage)Point storage.
If not null, null, it is translated about the resulting screen position
and returned.Overrides com. Implements com. |
| protected Point | getLocationOnScreenNativeImpl(final int x0, final int y0)
Implements abstract com. |
| public final long | getSurfaceHandle()
Overrides com. Implements com. |
| public final long | getWindowHandle()
Overrides com. Implements com. |
| protected void | |
| protected void | layoutSurfaceLayerImpl(final long layerHandle, final boolean visible)
Overrides com. |
| protected int | lockSurfaceImpl(final GraphicsConfiguration gc)
Implements abstract com. |
| private static native void | SetJAWTRootSurfaceLayer0(long jawtSurfaceLayersHandle, long caLayer)
Set the given root CALayer in the JAWT surface |
| public void | setSurfaceHandle(final long surfaceHandle)
Implements com. |
| public boolean | setSurfaceScale(final float[]
requested surface pixel scale float[2] values for x- and y-direction. pixelScale)Overrides com. Implements com. NativeSurface,
where size_in_pixel_units = pixel_scale * size_in_window_units.
|
| protected void | |
| private static native void | UnsetJAWTRootSurfaceLayer0(long jawtSurfaceLayersHandle, long caLayer)
Unset the given root CALayer in the JAWT surface, passing the NIO DrawingSurfaceInfo buffer |
| DEBUG_CALAYER_POS_CRITICAL | back to summary |
|---|---|
| private static final boolean DEBUG_CALAYER_POS_CRITICAL May lead to deadlock, due to AWT pos comparison .. don't enable for Applets! | |
| ds | back to summary |
|---|---|
| private JAWT_DrawingSurface ds | |
| dsi | back to summary |
|---|---|
| private JAWT_DrawingSurfaceInfo dsi | |
| dsLocked | back to summary |
|---|---|
| private boolean dsLocked | |
| firstLock | back to summary |
|---|---|
| private boolean firstLock | |
| jawtSurfaceLayersHandle | back to summary |
|---|---|
| private long jawtSurfaceLayersHandle | |
| macosxdsi | back to summary |
|---|---|
| private JAWT_MacOSXDrawingSurfaceInfo macosxdsi | |
| offscreenSurfaceDrawable | back to summary |
|---|---|
| private long offscreenSurfaceDrawable | |
| offscreenSurfaceDrawableSet | back to summary |
|---|---|
| private boolean offscreenSurfaceDrawableSet | |
| rootSurfaceLayer | back to summary |
|---|---|
| private volatile long rootSurfaceLayer | |
| windowHandle | back to summary |
|---|---|
| private long windowHandle | |
| MacOSXJAWTWindow | back to summary |
|---|---|
| public MacOSXJAWTWindow(final Object comp, final AbstractGraphicsConfiguration config) | |
| attachSurfaceLayerImpl | back to summary |
|---|---|
| protected void attachSurfaceLayerImpl(final long layerHandle) Overrides com.
| |
| detachSurfaceLayerImpl | back to summary |
|---|---|
| protected void detachSurfaceLayerImpl(final long layerHandle, final Runnable detachNotify) Overrides com.
| |
| dumpInfo | back to summary |
|---|---|
| private void dumpInfo() | |
| fetchJAWTImpl | back to summary |
|---|---|
| protected JAWT fetchJAWTImpl() throws NativeWindowException Implements abstract com. Doc from com. If JAWT offscreen layer is supported,
implementation shall respect | |
| GetJAWTSurfaceLayersHandle0 | back to summary |
|---|---|
| private static native long GetJAWTSurfaceLayersHandle0(Buffer jawtDrawingSurfaceInfoBuffer) | |
| getLocationOnScreen | back to summary |
|---|---|
| public Point getLocationOnScreen(Point storage) Overrides com. Implements com. Doc from com. Returns the window's top-left client-area position in the screen.
If See Coordinate System. Since the position reflects the client area, it does not include the insets.
This JAWT default implementation is currently still using
a blocking implementation. It first attempts to retrieve the location
via a native implementation. If this fails, it tries the blocking AWT implementation.
If the latter fails due to an external AWT tree-lock, the non block
implementation On OS X locking the surface at this point (ie after creation and for location validation) is 'tricky' since the JVM traverses through many threads and crashes at: lockSurfaceImpl() { .. ds = getJAWT().GetDrawingSurface(component); due to a SIGSEGV. Hence we have some threading / sync issues with the native JAWT implementation.
| |
| getLocationOnScreenNativeImpl | back to summary |
|---|---|
| protected Point getLocationOnScreenNativeImpl(final int x0, final int y0) Implements abstract com.
| |
| getSurfaceHandle | back to summary |
|---|---|
| public final long getSurfaceHandle() Overrides com. Implements com. Doc from com. Returns the handle to the surface for this NativeSurface.
The surface handle should be set/update by
On X11 this returns an entity of type Window,
since there is no differentiation of surface and window there.
| |
| getWindowHandle | back to summary |
|---|---|
| public final long getWindowHandle() Overrides com. Implements com. Doc from com. Returns the window handle for this NativeWindow. 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.
| |
| invalidateNative | back to summary |
|---|---|
| protected void invalidateNative() Implements abstract com.
| |
| layoutSurfaceLayerImpl | back to summary |
|---|---|
| protected void layoutSurfaceLayerImpl(final long layerHandle, final boolean visible) Overrides com. Doc from com. Layout the offscreen layer according to the implementing class's constraints. This method allows triggering a re-layout of the offscreen surface in case the implementation requires it. Call this method if any parent or ancestor's layout has been changed, which could affects the layout of this surface.
| |
| lockSurfaceImpl | back to summary |
|---|---|
| protected int lockSurfaceImpl(final GraphicsConfiguration gc) throws NativeWindowException Implements abstract com.
| |
| SetJAWTRootSurfaceLayer0 | back to summary |
|---|---|
| private static native void SetJAWTRootSurfaceLayer0(long jawtSurfaceLayersHandle, long caLayer) Set the given root CALayer in the JAWT surface | |
| setSurfaceHandle | back to summary |
|---|---|
| public void setSurfaceHandle(final long surfaceHandle) Implements com. Doc from com. Sets the surface handle which is created outside of this implementation.
| |
| setSurfaceScale | back to summary |
|---|---|
| public boolean setSurfaceScale(final float[] pixelScale) Overrides com. Implements com. Doc from com. Request a pixel scale in x- and y-direction for the associated
Default pixel scale request for both directions is
In case platform only supports uniform pixel scale, i.e. one scale for both directions,
either
The requested pixel scale will be validated against platform limits before native scale-setup,
i.e. clipped to
The actual realized pixel scale values of the
| |
| unlockSurfaceImpl | back to summary |
|---|---|
| protected void unlockSurfaceImpl() throws NativeWindowException Implements abstract com.
| |
| UnsetJAWTRootSurfaceLayer0 | back to summary |
|---|---|
| private static native void UnsetJAWTRootSurfaceLayer0(long jawtSurfaceLayersHandle, long caLayer) Unset the given root CALayer in the JAWT surface, passing the NIO DrawingSurfaceInfo buffer | |