sun.awt.PaintEventDispatcher Java Examples
The following examples show how to use
sun.awt.PaintEventDispatcher.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WComponentPeer.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void replaceSurfaceDataLater() { Runnable r = new Runnable() { @Override public void run() { // Shouldn't do anything if object is disposed in meanwhile // No need for sync as disposeAction in Window is performed // on EDT if (!isDisposed()) { try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND : what do we do if our surface creation failed? } } } }; Component c = (Component)target; // Fix 6255371. if (!PaintEventDispatcher.getPaintEventDispatcher().queueSurfaceDataReplacing(c, r)) { postEvent(new InvocationEvent(c, r)); } }
Example #2
Source File: WCanvasPeer.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example #3
Source File: WComponentPeer.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
public void replaceSurfaceDataLater() { Runnable r = new Runnable() { @Override public void run() { // Shouldn't do anything if object is disposed in meanwhile // No need for sync as disposeAction in Window is performed // on EDT if (!isDisposed()) { try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND : what do we do if our surface creation failed? } } } }; Component c = (Component)target; // Fix 6255371. if (!PaintEventDispatcher.getPaintEventDispatcher().queueSurfaceDataReplacing(c, r)) { postEvent(new InvocationEvent(c, r)); } }
Example #4
Source File: WComponentPeer.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void replaceSurfaceDataLater() { Runnable r = new Runnable() { public void run() { // Shouldn't do anything if object is disposed in meanwhile // No need for sync as disposeAction in Window is performed // on EDT if (!isDisposed()) { try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND : what do we do if our surface creation failed? } } } }; Component c = (Component)target; // Fix 6255371. if (!PaintEventDispatcher.getPaintEventDispatcher().queueSurfaceDataReplacing(c, r)) { postEvent(new InvocationEvent(c, r)); } }
Example #5
Source File: WCanvasPeer.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example #6
Source File: WComponentPeer.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void replaceSurfaceDataLater() { Runnable r = new Runnable() { public void run() { // Shouldn't do anything if object is disposed in meanwhile // No need for sync as disposeAction in Window is performed // on EDT if (!isDisposed()) { try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND : what do we do if our surface creation failed? } } } }; Component c = (Component)target; // Fix 6255371. if (!PaintEventDispatcher.getPaintEventDispatcher().queueSurfaceDataReplacing(c, r)) { postEvent(new InvocationEvent(c, r)); } }
Example #7
Source File: WCanvasPeer.java From hottub with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example #8
Source File: WCanvasPeer.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example #9
Source File: WComponentPeer.java From hottub with GNU General Public License v2.0 | 6 votes |
public void replaceSurfaceDataLater() { Runnable r = new Runnable() { @Override public void run() { // Shouldn't do anything if object is disposed in meanwhile // No need for sync as disposeAction in Window is performed // on EDT if (!isDisposed()) { try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND : what do we do if our surface creation failed? } } } }; Component c = (Component)target; // Fix 6255371. if (!PaintEventDispatcher.getPaintEventDispatcher().queueSurfaceDataReplacing(c, r)) { postEvent(new InvocationEvent(c, r)); } }
Example #10
Source File: WCanvasPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example #11
Source File: WComponentPeer.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public void replaceSurfaceDataLater() { Runnable r = new Runnable() { @Override public void run() { // Shouldn't do anything if object is disposed in meanwhile // No need for sync as disposeAction in Window is performed // on EDT if (!isDisposed()) { try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND : what do we do if our surface creation failed? } } } }; Component c = (Component)target; // Fix 6255371. if (!PaintEventDispatcher.getPaintEventDispatcher().queueSurfaceDataReplacing(c, r)) { postEvent(new InvocationEvent(c, r)); } }
Example #12
Source File: WComponentPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public void replaceSurfaceDataLater() { Runnable r = new Runnable() { @Override public void run() { // Shouldn't do anything if object is disposed in meanwhile // No need for sync as disposeAction in Window is performed // on EDT if (!isDisposed()) { try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND : what do we do if our surface creation failed? } } } }; Component c = (Component)target; // Fix 6255371. if (!PaintEventDispatcher.getPaintEventDispatcher().queueSurfaceDataReplacing(c, r)) { postEvent(new InvocationEvent(c, r)); } }
Example #13
Source File: WCanvasPeer.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example #14
Source File: WComponentPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public void replaceSurfaceDataLater() { Runnable r = new Runnable() { @Override public void run() { // Shouldn't do anything if object is disposed in meanwhile // No need for sync as disposeAction in Window is performed // on EDT if (!isDisposed()) { try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND : what do we do if our surface creation failed? } } } }; Component c = (Component)target; // Fix 6255371. if (!PaintEventDispatcher.getPaintEventDispatcher().queueSurfaceDataReplacing(c, r)) { postEvent(new InvocationEvent(c, r)); } }
Example #15
Source File: WCanvasPeer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example #16
Source File: WComponentPeer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void replaceSurfaceDataLater() { Runnable r = new Runnable() { @Override public void run() { // Shouldn't do anything if object is disposed in meanwhile // No need for sync as disposeAction in Window is performed // on EDT if (!isDisposed()) { try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND : what do we do if our surface creation failed? } } } }; Component c = (Component)target; // Fix 6255371. if (!PaintEventDispatcher.getPaintEventDispatcher().queueSurfaceDataReplacing(c, r)) { postEvent(new InvocationEvent(c, r)); } }
Example #17
Source File: WCanvasPeer.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example #18
Source File: WCanvasPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example #19
Source File: WComponentPeer.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void replaceSurfaceDataLater() { Runnable r = new Runnable() { @Override public void run() { // Shouldn't do anything if object is disposed in meanwhile // No need for sync as disposeAction in Window is performed // on EDT if (!isDisposed()) { try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND : what do we do if our surface creation failed? } } } }; Component c = (Component)target; // Fix 6255371. if (!PaintEventDispatcher.getPaintEventDispatcher().queueSurfaceDataReplacing(c, r)) { postEvent(new InvocationEvent(c, r)); } }
Example #20
Source File: WCanvasPeer.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example #21
Source File: WComponentPeer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
public void replaceSurfaceDataLater() { Runnable r = new Runnable() { @Override public void run() { // Shouldn't do anything if object is disposed in meanwhile // No need for sync as disposeAction in Window is performed // on EDT if (!isDisposed()) { try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND : what do we do if our surface creation failed? } } } }; Component c = (Component)target; // Fix 6255371. if (!PaintEventDispatcher.getPaintEventDispatcher().queueSurfaceDataReplacing(c, r)) { postEvent(new InvocationEvent(c, r)); } }
Example #22
Source File: WComponentPeer.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void replaceSurfaceDataLater() { Runnable r = new Runnable() { @Override public void run() { // Shouldn't do anything if object is disposed in meanwhile // No need for sync as disposeAction in Window is performed // on EDT if (!isDisposed()) { try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND : what do we do if our surface creation failed? } } } }; Component c = (Component)target; // Fix 6255371. if (!PaintEventDispatcher.getPaintEventDispatcher().queueSurfaceDataReplacing(c, r)) { postEvent(new InvocationEvent(c, r)); } }
Example #23
Source File: WCanvasPeer.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example #24
Source File: WComponentPeer.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void replaceSurfaceDataLater() { Runnable r = new Runnable() { @Override public void run() { // Shouldn't do anything if object is disposed in meanwhile // No need for sync as disposeAction in Window is performed // on EDT if (!isDisposed()) { try { replaceSurfaceData(); } catch (InvalidPipeException e) { // REMIND : what do we do if our surface creation failed? } } } }; Component c = (Component)target; // Fix 6255371. if (!PaintEventDispatcher.getPaintEventDispatcher().queueSurfaceDataReplacing(c, r)) { postEvent(new InvocationEvent(c, r)); } }
Example #25
Source File: WCanvasPeer.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example #26
Source File: WCanvasPeer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example #27
Source File: WComponentPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private void postPaintIfNecessary(int x, int y, int w, int h) { if ( !AWTAccessor.getComponentAccessor().getIgnoreRepaint( (Component) target) ) { PaintEvent event = PaintEventDispatcher.getPaintEventDispatcher(). createPaintEvent((Component)target, x, y, w, h); if (event != null) { postEvent(event); } } }
Example #28
Source File: WComponentPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private void postPaintIfNecessary(int x, int y, int w, int h) { if ( !AWTAccessor.getComponentAccessor().getIgnoreRepaint( (Component) target) ) { PaintEvent event = PaintEventDispatcher.getPaintEventDispatcher(). createPaintEvent((Component)target, x, y, w, h); if (event != null) { postEvent(event); } } }
Example #29
Source File: WComponentPeer.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
private void postPaintIfNecessary(int x, int y, int w, int h) { if ( !AWTAccessor.getComponentAccessor().getIgnoreRepaint( (Component) target) ) { PaintEvent event = PaintEventDispatcher.getPaintEventDispatcher(). createPaintEvent((Component)target, x, y, w, h); if (event != null) { postEvent(event); } } }
Example #30
Source File: WComponentPeer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
private void postPaintIfNecessary(int x, int y, int w, int h) { if ( !AWTAccessor.getComponentAccessor().getIgnoreRepaint( (Component) target) ) { PaintEvent event = PaintEventDispatcher.getPaintEventDispatcher(). createPaintEvent((Component)target, x, y, w, h); if (event != null) { postEvent(event); } } }