| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final AppContextInfo | |
| private volatile AWTGraphicsConfiguration | |
| protected Rectangle | |
| protected final Component | |
| protected static final boolean | |
| private final Runnable | |
| protected long | |
| private long | |
| private final float[] | |
| private volatile boolean | |
| protected Insets | |
| private boolean | |
| private boolean | |
| private JAWT | |
| private final JAWTWindow. | |
| private final float[] | |
| private final float[] | |
| private volatile long | |
| private final Runnable | |
| private final float[] | |
| protected boolean | |
| private final RecursiveLock | |
| private final SurfaceUpdatedHelper |
| Access | Constructor and Description |
|---|---|
| protected | JAWTWindow(final Object comp, final AbstractGraphicsConfiguration config)
Constructed by |
| Modifier and Type | Method and Description |
|---|---|
| public void | addSurfaceUpdatedListener(final SurfaceUpdatedListener l)
Implements com. SurfaceUpdatedListener to the end of the list.
|
| public void | addSurfaceUpdatedListener(final int
Position where the listener will be inserted.
Should be within (0 <= index && index <= size()).
An index value of -1 is interpreted as the end of the list, size(). index, final SurfaceUpdatedListener The listener object to be inserted l)Implements com. SurfaceUpdatedListener at the
specified position in the list.
|
| public final void | attachSurfaceLayer(final long layerHandle)
Implements com. |
| protected void | |
| public final int[] | convertToPixelUnits(final int[]
int[2] storage holding the window units for the x- and y-coord to convert
and the resulting values. windowUnitsAndResult)Implements com. |
| public final int[] | convertToWindowUnits(final int[]
int[2] storage holding the pixel units for the x- and y-coord to convert
and the resulting values. pixelUnitsAndResult)Implements com. |
| public void | |
| public final void | detachSurfaceLayer()
Implements com. |
| protected void | detachSurfaceLayerImpl(final long layerHandle, final Runnable
Runnable to be called before native detachment detachNotify)
|
| private void | |
| protected void | |
| protected abstract JAWT | Returns: The JAWT instance reflecting offscreen layer support, etc.If JAWT offscreen layer is supported,
implementation shall respect |
| public final long | getAttachedSurfaceLayer()
Implements com. |
| public final Component | |
| public final AWTGraphicsConfiguration | getAWTGraphicsConfiguration()
Return the current |
| public final RectangleImmutable | |
| public final float[] | getCurrentSurfaceScale(final float[]
float[2] storage for the result result)Implements com. NativeSurface.
|
| public final long | getDisplayHandle()
Implements com. |
| public final AbstractGraphicsConfiguration | getGraphicsConfiguration()
Implements com. |
| public final int | getHeight()
Implements com. |
| public final InsetsImmutable | getInsets()
Implements com. |
| public final JAWT | |
| public Point | getLocationOnScreen(final Point
Optional storage)Point storage.
If not null, null, it is translated about the resulting screen position
and returned.Implements com. |
| protected Point | |
| protected abstract Point | |
| public final RecursiveLock | getLock()
Implements com. |
| public final float[] | getMaximumSurfaceScale(final float[]
float[2] storage for the result result)Implements com. NativeSurface.
|
| public float[] | getMinimumSurfaceScale(final float[]
float[2] storage for the result result)Implements com. NativeSurface.
|
| public final NativeSurface | getNativeSurface()
Implements com. NativeSurface of this NativeSurfaceHolder.
|
| public final NativeWindow | |
| protected final float | Returns: the safe pixelScale value for x-direction, i.e. never negative or zero. Updated with lock.
|
| protected final float | Returns: the safe pixelScale value for y-direction, i.e. never negative or zero. Updated with lock.
|
| public final float[] | getRequestedSurfaceScale(final float[]
float[2] storage for the result result)Implements com. requested pixel scale of the associated NativeSurface.
|
| public final int | getScreenIndex()
Implements com. |
| public final boolean | getShallUseOffscreenLayer()
Implements com. setShallUseOffscreenLayer(boolean).
|
| public long | getSurfaceHandle()
Implements com. |
| public final int | getSurfaceHeight()
Implements com. |
| public final Thread | getSurfaceLockOwner()
Implements com. |
| public final int | getSurfaceWidth()
Implements com. |
| private static String | |
| public final int | getWidth()
Implements com. |
| public long | getWindowHandle()
Implements com. |
| public final int | getX()
Implements com. |
| public final int | getY()
Implements com. |
| public boolean | hasFocus()
Implements com. |
| public final boolean | |
| public final boolean | hideCursor()
Implements com. |
| private static String | |
| protected synchronized void | |
| protected abstract void | |
| public final boolean | |
| public final boolean | isOffscreenLayerSurfaceEnabled()
Implements com. |
| public final boolean | isSurfaceLayerAttached()
Implements com. |
| public final boolean | isSurfaceLockedByOtherThread()
Implements com. |
| protected StringBuilder | |
| private String | |
| private String | |
| private final void | |
| protected void | layoutSurfaceLayerImpl(final long layerHandle, final boolean visible)
Layout the offscreen layer according to the implementing class's constraints. |
| public final int | lockSurface()
Implements com. |
| protected int | |
| protected abstract int | |
| public void | removeSurfaceUpdatedListener(final SurfaceUpdatedListener l)
Implements com. SurfaceUpdatedListener from the list.
|
| public final void | setAWTGraphicsConfiguration(final AWTGraphicsConfiguration
the new config)AWTGraphicsConfigurationSet a new |
| public final void | setChosenCapabilities(final CapabilitiesImmutable caps)
Implements com. |
| public final boolean | setCursor(final PixelRectangle
cursor pixels, maybe null for default cursor pixelrect, final PointImmutable maybe null for default cursor hotSpot)Implements com. |
| protected final boolean | |
| public void | setShallUseOffscreenLayer(final boolean v)
Implements com. |
| public boolean | setSurfaceScale(final float[]
requested surface pixel scale float[2] values for x- and y-direction. pixelScale)Implements com. NativeSurface,
where size_in_pixel_units = pixel_scale * size_in_window_units.
|
| public boolean | surfaceSwap()
Implements com. |
| public void | surfaceUpdated(final Object
is the caller object who updated the surface,
e.g. a JOGL GLDrawable. updater, final NativeSurface the updated NativeSurface ns, final long the time in ms, when the surface was updated when)Implements com. |
| protected static final String | |
| protected static final String | |
| public String | |
| public final void | unlockSurface()
Implements com. lockSurface()
The implementation shall also invoke |
| protected abstract void | |
| protected final boolean | Returns: true if bounds or pixelScale has changed, otherwise falseGraphicsConfiguration for gc)updatePixelScale(GraphicsConfiguration, boolean)Updates bounds and pixelScale |
| protected final boolean | updateLockedData(final JAWT_Rectangle jawtBounds)
Deprecated
Use
updateLockedData(JAWT_Rectangle, GraphicsConfiguration).
|
| public final boolean | Returns: true if values were updated, otherwise false.pre-fetched gc, final boolean GraphicsConfiguration instance of upstream component,
caller may use cached getAWTGraphicsConfiguration()'s GC
or a Component#getGraphicsConfiguration().if clearFlag)true, the hasPixelScaleChanged flag will be clearedUpdates the minimum and maximum pixel-scale values
and returns |
| public final boolean | updatePixelScale(final boolean clearFlag)
Deprecated
Use
updatePixelScale(GraphicsConfiguration, boolean).
|