Canvas containing a NEWT Window using native parenting.
setShallUseOffscreenLayer(true)
maybe called to use an offscreen drawable (FBO or PBuffer) allowing
the underlying JAWT mechanism to composite the image, if supported.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv class | |
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Runnable | |
| private final Runnable | awtClearSelectedMenuPath
Must run on AWT-EDT non-blocking, since it invokes tasks on AWT-EDT w/ waiting otherwise. |
| private volatile AWTGraphicsConfiguration | |
| private final AWTAdapter | |
| private final AWTAdapter | |
| private final AWTParentWindowAdapter | |
| private final AWTWindowClosingProtocol | |
| private final WindowListener | |
| private volatile boolean | componentAdded
Safeguard for AWTWindowClosingProtocol and 'removeNotify()' on other thread than AWT-EDT. |
| public static final boolean | |
| private boolean | destroyJAWTPending
Mitigates Bug 910 (IcedTea-Web), i.e. crash via removeNotify() invoked before Applet.destroy(). |
| private static boolean | |
| private static Method | |
| private final NewtCanvasAWT. | |
| private final NewtCanvasAWT. | |
| private final Runnable | |
| private boolean | |
| private boolean | |
| private volatile JAWTWindow | |
| private volatile KeyboardFocusManager | |
| private Window | |
| private boolean | |
| private WindowClosingProtocol. | |
| private final NewtCanvasAWT. | |
| private volatile boolean | |
| private GLAnimatorControl | |
| private AWTTilePainter | |
| private GLAutoDrawable | |
| private final Runnable | |
| private final Runnable | |
| private boolean | |
| private boolean | skipJAWTDestroy
Mitigates Bug 910 (IcedTea-Web), i.e. crash via removeNotify() invoked before Applet.destroy(). |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | NewtCanvasAWT(final GraphicsConfiguration gc, final Window child)
Instantiates a NewtCanvas with a NEWT child. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private final void | |
| private final void | |
| protected static String | |
| public final void | destroy()
Destroys this resource:
|
| private final void | |
| private final void | |
| private final void | |
| private void | |
| public WindowClosingProtocol. | |
| private final GLAutoDrawable | |
| public GraphicsConfiguration | getGraphicsConfiguration()
Overrides java. GraphicsConfiguration associated with this
Component.
|
| public NativeWindow | Returns: this AWT Canvas NativeWindow representation, may be null in caseremoveNotify() has been called,
or addNotify() hasn't been called yet.
|
| public Window | |
| public final boolean | getShallUseOffscreenLayer()
Implements com. setShallUseOffscreenLayer(boolean).
|
| public final boolean | |
| private static String | |
| public final boolean | |
| public final boolean | isAWTEventPassThrough()
Returns |
| private final boolean | |
| public final boolean | isOffscreenLayerSurfaceEnabled()
Implements com. |
| private final boolean | |
| pack-priv static String | |
| public void | paint(final Graphics
the specified Graphics context g)Overrides java. |
| public void | print(final Graphics
the graphics context to use for printing graphics)Overrides java. |
| public void | releasePrint()
Implements com. PrinterJob#print().
|
| public void | removeNotify()
Overrides java. Component undisplayable by destroying it native
screen resource.
|
| private final void | |
| public void | reshape(final int
the x coordinate of the upper left corner of the rectangle x, final int the y coordinate of the upper left corner of the rectangle y, final int the width of the rectangle width, final int the height of the rectangle height)Overrides java. |
| private void | |
| public WindowClosingProtocol. | setDefaultCloseOperation(final WindowClosingProtocol.
the new close operation value opImplements com. |
| public Window | Returns: the previous attached newt child.Sets a new NEWT child, provoking reparenting. |
| public void | setShallUseOffscreenLayer(final boolean v)
Implements com. |
| public final void | setSkipJAWTDestroy(final boolean v)
Mitigates Bug 910 (IcedTea-Web), i.e. crash via removeNotify() invoked before Applet.destroy(). |
| public void | setupPrint(final double
Graphics2D scaling factor, i.e. rendering 1/scaleMatX * width pixelsGraphics2D scaling factor, i.e. rendering 1/scaleMatY * height pixelsmultisampling value: < 0 turns off, == 0 leaves as-is, > 0 enables using given num samples numSamples, final int custom tile width for tileWidth, final int tile renderer, pass -1 for default.custom tile height for tileHeight)tile renderer, pass -1 for default.
FIXME: Add border size !Implements com. PrinterJob#print().
|
| pack-priv static String | |
| public void | update(final Graphics
the specified Graphics context g)Overrides java. |
| private final void | |
| private final boolean | |
| private final boolean |
| awtClearGlobalFocusOwner | back to summary |
|---|---|
| private static final Runnable awtClearGlobalFocusOwner | |
| awtClearSelectedMenuPath | back to summary |
|---|---|
| private final Runnable awtClearSelectedMenuPath Must run on AWT-EDT non-blocking, since it invokes tasks on AWT-EDT w/ waiting otherwise. | |
| awtConfig | back to summary |
|---|---|
| private volatile AWTGraphicsConfiguration awtConfig | |
| awtKeyAdapter | back to summary |
|---|---|
| private final AWTAdapter awtKeyAdapter | |
| awtMouseAdapter | back to summary |
|---|---|
| private final AWTAdapter awtMouseAdapter | |
| awtWinAdapter | back to summary |
|---|---|
| private final AWTParentWindowAdapter awtWinAdapter | |
| awtWindowClosingProtocol | back to summary |
|---|---|
| private final AWTWindowClosingProtocol awtWindowClosingProtocol | |
| clearAWTMenusOnNewtFocus | back to summary |
|---|---|
| private final WindowListener clearAWTMenusOnNewtFocus | |
| componentAdded | back to summary |
|---|---|
| private volatile boolean componentAdded Safeguard for AWTWindowClosingProtocol and 'removeNotify()' on other thread than AWT-EDT. | |
| DEBUG | back to summary |
|---|---|
| public static final boolean DEBUG | |
| destroyJAWTPending | back to summary |
|---|---|
| private boolean destroyJAWTPending Mitigates Bug 910 (IcedTea-Web), i.e. crash via removeNotify() invoked before Applet.destroy(). | |
| disableBackgroundEraseInitialized | back to summary |
|---|---|
| private static boolean disableBackgroundEraseInitialized | |
| disableBackgroundEraseMethod | back to summary |
|---|---|
| private static Method disableBackgroundEraseMethod | |
| focusAction | back to summary |
|---|---|
| private final NewtCanvasAWT. | |
| focusPropertyChangeListener | back to summary |
|---|---|
| private final NewtCanvasAWT. | |
| forceRelayout | back to summary |
|---|---|
| private final Runnable forceRelayout | |
| isApplet | back to summary |
|---|---|
| private boolean isApplet | |
| isOnscreen | back to summary |
|---|---|
| private boolean isOnscreen | |
| jawtWindow | back to summary |
|---|---|
| private volatile JAWTWindow jawtWindow | |
| keyboardFocusManager | back to summary |
|---|---|
| private volatile KeyboardFocusManager keyboardFocusManager | |
| newtChild | back to summary |
|---|---|
| private Window newtChild | |
| newtChildAttached | back to summary |
|---|---|
| private boolean newtChildAttached | |
| newtChildCloseOp | back to summary |
|---|---|
| private WindowClosingProtocol. | |
| newtFocusTraversalKeyListener | back to summary |
|---|---|
| private final NewtCanvasAWT. | |
| printActive | back to summary |
|---|---|
| private volatile boolean printActive | |
| printAnimator | back to summary |
|---|---|
| private GLAnimatorControl printAnimator | |
| printAWTTiles | back to summary |
|---|---|
| private AWTTilePainter printAWTTiles | |
| printGLAD | back to summary |
|---|---|
| private GLAutoDrawable printGLAD | |
| releasePrintOnEDT | back to summary |
|---|---|
| private final Runnable releasePrintOnEDT | |
| setupPrintOnEDT | back to summary |
|---|---|
| private final Runnable setupPrintOnEDT | |
| shallUseOffscreenLayer | back to summary |
|---|---|
| private boolean shallUseOffscreenLayer | |
| skipJAWTDestroy | back to summary |
|---|---|
| private boolean skipJAWTDestroy Mitigates Bug 910 (IcedTea-Web), i.e. crash via removeNotify() invoked before Applet.destroy(). | |
| sync | back to summary |
|---|---|
| private final Object sync | |
| NewtCanvasAWT | back to summary |
|---|---|
| public NewtCanvasAWT() Instantiates a NewtCanvas without a NEWT child. | |
| NewtCanvasAWT | back to summary |
|---|---|
| public NewtCanvasAWT(final GraphicsConfiguration gc) Instantiates a NewtCanvas without a NEWT child. | |
| NewtCanvasAWT | back to summary |
|---|---|
| public NewtCanvasAWT(final Window child) Instantiates a NewtCanvas with a NEWT child. | |
| NewtCanvasAWT | back to summary |
|---|---|
| public NewtCanvasAWT(final GraphicsConfiguration gc, final Window child) Instantiates a NewtCanvas with a NEWT child. | |
| addNotify | back to summary |
|---|---|
| public void addNotify() Overrides java. Doc from java. Creates the peer of the canvas. This peer allows you to change the user interface of the canvas without changing its functionality.
| |
| attachNewtChild | back to summary |
|---|---|
| private final void attachNewtChild() | |
| configureNewtChild | back to summary |
|---|---|
| private final void configureNewtChild(final boolean attach) | |
| currentThreadName | back to summary |
|---|---|
| protected static String currentThreadName() | |
| destroy | back to summary |
|---|---|
| public final void destroy() Destroys this resource:
| |
| destroyImpl | back to summary |
|---|---|
| private final void destroyImpl(final boolean removeNotify, final boolean windowClosing) | |
| detachNewtChild | back to summary |
|---|---|
| private final void detachNewtChild(final Container cont) | |
| determineIfApplet | back to summary |
|---|---|
| private final void determineIfApplet() | |
| disableBackgroundErase | back to summary |
|---|---|
| private void disableBackgroundErase() | |
| getDefaultCloseOperation | back to summary |
|---|---|
| public WindowClosingProtocol. Implements com.
| |
| getGLAD | back to summary |
|---|---|
| private final GLAutoDrawable getGLAD() | |
| getGraphicsConfiguration | back to summary |
|---|---|
| public GraphicsConfiguration getGraphicsConfiguration() Overrides java. Doc from java. Gets the
Overridden to choose a
Method also intercepts
| |
| getNativeWindow | back to summary |
|---|---|
public NativeWindow getNativeWindow()
| |
| getNEWTChild | back to summary |
|---|---|
public Window getNEWTChild()
| |
| getShallUseOffscreenLayer | back to summary |
|---|---|
| public final boolean getShallUseOffscreenLayer() Implements com. Doc from com. Returns the property set by
| |
| getSkipJAWTDestroy | back to summary |
|---|---|
| public final boolean getSkipJAWTDestroy() | |
| getThreadName | back to summary |
|---|---|
| private static String getThreadName() | |
| isApplet | back to summary |
|---|---|
| public final boolean isApplet() Returns true if the AWT component is parented to an | |
| isAWTEventPassThrough | back to summary |
|---|---|
| public final boolean isAWTEventPassThrough() Returns
Normally only the Note AWT key events will | |
| isFullscreen | back to summary |
|---|---|
| private final boolean isFullscreen() | |
| isOffscreenLayerSurfaceEnabled | back to summary |
|---|---|
| public final boolean isOffscreenLayerSurfaceEnabled() Implements com. Doc from com. Returns true if this instance uses an offscreen layer, otherwise false.
This instance is an offscreen layer, if NativeWindow#lockSurface().
| |
| isParent | back to summary |
|---|---|
| private final boolean isParent() | |
| newtWinHandleToHexString | back to summary |
|---|---|
| pack-priv static String newtWinHandleToHexString(final Window w) | |
| paint | back to summary |
|---|---|
| public void paint(final Graphics g) Overrides java. Doc from java. Paints this canvas.
Most applications that subclass | |
| back to summary | |
|---|---|
| public void print(final Graphics graphics) Overrides java. Doc from java. Prints this component. Applications should override this method for components that must do special processing before being printed or should be printed differently than they are painted.
The default implementation of this method calls the
The origin of the graphics context, its
( | |
| releasePrint | back to summary |
|---|---|
| public void releasePrint() Implements com. Doc from com. Shall be called after See Usage.
| |
| removeNotify | back to summary |
|---|---|
| public void removeNotify() Overrides java. Doc from java. Makes this
This method is called by the toolkit internally and should
not be called directly by programs. Code overriding
this method should call
| |
| requestFocusNEWTChild | back to summary |
|---|---|
| private final void requestFocusNEWTChild() | |
| reshape | back to summary |
|---|---|
| public void reshape(final int x, final int y, final int width, final int height) Overrides java. Doc from java. Reshapes the bounding rectangle for this component.
| |
| setAWTGraphicsConfiguration | back to summary |
|---|---|
| private void setAWTGraphicsConfiguration(final AWTGraphicsConfiguration config) | |
| setDefaultCloseOperation | back to summary |
|---|---|
| public WindowClosingProtocol. Implements com.
| |
| setNEWTChild | back to summary |
|---|---|
| public Window setNEWTChild(final Window newChild) Sets a new NEWT child, provoking reparenting.
A previously detached Note When switching NEWT child's, detaching the previous first via
| |
| setShallUseOffscreenLayer | back to summary |
|---|---|
| public void setShallUseOffscreenLayer(final boolean v) Implements com. Doc from com. Request an offscreen layer, if supported.
Shall be called before the first
| |
| setSkipJAWTDestroy | back to summary |
|---|---|
| public final void setSkipJAWTDestroy(final boolean v) Mitigates Bug 910 (IcedTea-Web), i.e. crash via removeNotify() invoked before Applet.destroy().
| |
| setupPrint | back to summary |
|---|---|
| public void setupPrint(final double scaleMatX, final double scaleMatY, final int numSamples, final int tileWidth, final int tileHeight) Implements com. Doc from com. Shall be called before See Usage.
| |
| toHexString | back to summary |
|---|---|
| pack-priv static String toHexString(final long l) | |
| update | back to summary |
|---|---|
| public void update(final Graphics g) Overrides java. Doc from java. Updates this canvas.
This method is called in response to a call to Note applications that override this method should either call super.update(g) or incorporate the functionality described above into their own code. | |
| updateLayoutSize | back to summary |
|---|---|
| private final void updateLayoutSize() | |
| updatePixelScale | back to summary |
|---|---|
| private final boolean updatePixelScale(final GraphicsConfiguration gc) | |
| validateComponent | back to summary |
|---|---|
| private final boolean validateComponent(final boolean attachNewtChild) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| ClearFocusOwner | back to summary |
|---|---|
| private ClearFocusOwner() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| FocusAction | back to summary |
|---|---|
| pack-priv FocusAction() | |
| run | back to summary |
|---|---|
| public boolean run() Implements com.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | propertyChange(final PropertyChangeEvent
A PropertyChangeEvent object describing the event source
and the property that has changed. evt)Implements java. |
| FocusPropertyChangeListener | back to summary |
|---|---|
| pack-priv FocusPropertyChangeListener() | |
| propertyChange | back to summary |
|---|---|
| public void propertyChange(final PropertyChangeEvent evt) Implements java. Doc from java. This method gets called when a bound property is changed.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | keyPressed(final KeyEvent e)
Implements com. pressed, excluding auto-repeat modifier keys.
|
| public void | keyReleased(final KeyEvent e)
Implements com. released, excluding auto-repeat modifier keys.
|
| FocusTraversalKeyListener | back to summary |
|---|---|
| pack-priv FocusTraversalKeyListener() | |
| handleKey | back to summary |
|---|---|
| pack-priv void handleKey(final KeyEvent evt, final boolean onRelease) | |
| keyPressed | back to summary |
|---|---|
| public void keyPressed(final KeyEvent e) Implements com. Doc from com. A key has been
| |
| keyReleased | back to summary |
|---|---|
| public void keyReleased(final KeyEvent e) Implements com. Doc from com. A key has been
To simulated the removed
if( !e.isPrintableKey() || e.isAutoRepeat() ) {
return;
}
| |