sun.awt.image.PixelConverter Java Examples
The following examples show how to use
sun.awt.image.PixelConverter.
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: XWindow.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
final public void xSetBackground(Color c) { XToolkit.awtLock(); try { winBackground(c); // fix for 6558510: handle sun.awt.noerasebackground flag, // see doEraseBackground() and preInit() methods in XCanvasPeer if (!doEraseBackground()) { return; } // 6304250: XAWT: Items in choice show a blue border on OpenGL + Solaris10 when background color is set // Note: When OGL is enabled, surfaceData.pixelFor() will not // return a pixel value appropriate for passing to // XSetWindowBackground(). Therefore, we will use the ColorModel // for this component in order to calculate a pixel value from // the given RGB value. ColorModel cm = getColorModel(); int pixel = PixelConverter.instance.rgbToPixel(c.getRGB(), cm); XlibWrapper.XSetWindowBackground(XToolkit.getDisplay(), getContentWindow(), pixel); XlibWrapper.XClearWindow(XToolkit.getDisplay(), getContentWindow()); } finally { XToolkit.awtUnlock(); } }
Example #2
Source File: XWindow.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
final public void xSetBackground(Color c) { XToolkit.awtLock(); try { winBackground(c); // fix for 6558510: handle sun.awt.noerasebackground flag, // see doEraseBackground() and preInit() methods in XCanvasPeer if (!doEraseBackground()) { return; } // 6304250: XAWT: Items in choice show a blue border on OpenGL + Solaris10 when background color is set // Note: When OGL is enabled, surfaceData.pixelFor() will not // return a pixel value appropriate for passing to // XSetWindowBackground(). Therefore, we will use the ColorModel // for this component in order to calculate a pixel value from // the given RGB value. ColorModel cm = getColorModel(); int pixel = PixelConverter.instance.rgbToPixel(c.getRGB(), cm); XlibWrapper.XSetWindowBackground(XToolkit.getDisplay(), getContentWindow(), pixel); XlibWrapper.XClearWindow(XToolkit.getDisplay(), getContentWindow()); } finally { XToolkit.awtUnlock(); } }
Example #3
Source File: XWindow.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
final public void xSetBackground(Color c) { XToolkit.awtLock(); try { winBackground(c); // fix for 6558510: handle sun.awt.noerasebackground flag, // see doEraseBackground() and preInit() methods in XCanvasPeer if (!doEraseBackground()) { return; } // 6304250: XAWT: Items in choice show a blue border on OpenGL + Solaris10 when background color is set // Note: When OGL is enabled, surfaceData.pixelFor() will not // return a pixel value appropriate for passing to // XSetWindowBackground(). Therefore, we will use the ColorModel // for this component in order to calculate a pixel value from // the given RGB value. ColorModel cm = getColorModel(); int pixel = PixelConverter.instance.rgbToPixel(c.getRGB(), cm); XlibWrapper.XSetWindowBackground(XToolkit.getDisplay(), getContentWindow(), pixel); XlibWrapper.XClearWindow(XToolkit.getDisplay(), getContentWindow()); } finally { XToolkit.awtUnlock(); } }
Example #4
Source File: XWindow.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
final public void xSetBackground(Color c) { XToolkit.awtLock(); try { winBackground(c); // fix for 6558510: handle sun.awt.noerasebackground flag, // see doEraseBackground() and preInit() methods in XCanvasPeer if (!doEraseBackground()) { return; } // 6304250: XAWT: Items in choice show a blue border on OpenGL + Solaris10 when background color is set // Note: When OGL is enabled, surfaceData.pixelFor() will not // return a pixel value appropriate for passing to // XSetWindowBackground(). Therefore, we will use the ColorModel // for this component in order to calculate a pixel value from // the given RGB value. ColorModel cm = getColorModel(); int pixel = PixelConverter.instance.rgbToPixel(c.getRGB(), cm); XlibWrapper.XSetWindowBackground(XToolkit.getDisplay(), getContentWindow(), pixel); XlibWrapper.XClearWindow(XToolkit.getDisplay(), getContentWindow()); } finally { XToolkit.awtUnlock(); } }
Example #5
Source File: XWindow.java From hottub with GNU General Public License v2.0 | 6 votes |
final public void xSetBackground(Color c) { XToolkit.awtLock(); try { winBackground(c); // fix for 6558510: handle sun.awt.noerasebackground flag, // see doEraseBackground() and preInit() methods in XCanvasPeer if (!doEraseBackground()) { return; } // 6304250: XAWT: Items in choice show a blue border on OpenGL + Solaris10 when background color is set // Note: When OGL is enabled, surfaceData.pixelFor() will not // return a pixel value appropriate for passing to // XSetWindowBackground(). Therefore, we will use the ColorModel // for this component in order to calculate a pixel value from // the given RGB value. ColorModel cm = getColorModel(); int pixel = PixelConverter.instance.rgbToPixel(c.getRGB(), cm); XlibWrapper.XSetWindowBackground(XToolkit.getDisplay(), getContentWindow(), pixel); XlibWrapper.XClearWindow(XToolkit.getDisplay(), getContentWindow()); } finally { XToolkit.awtUnlock(); } }
Example #6
Source File: XWindow.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
final public void xSetBackground(Color c) { XToolkit.awtLock(); try { winBackground(c); // fix for 6558510: handle sun.awt.noerasebackground flag, // see doEraseBackground() and preInit() methods in XCanvasPeer if (!doEraseBackground()) { return; } // 6304250: XAWT: Items in choice show a blue border on OpenGL + Solaris10 when background color is set // Note: When OGL is enabled, surfaceData.pixelFor() will not // return a pixel value appropriate for passing to // XSetWindowBackground(). Therefore, we will use the ColorModel // for this component in order to calculate a pixel value from // the given RGB value. ColorModel cm = getColorModel(); int pixel = PixelConverter.instance.rgbToPixel(c.getRGB(), cm); XlibWrapper.XSetWindowBackground(XToolkit.getDisplay(), getContentWindow(), pixel); XlibWrapper.XClearWindow(XToolkit.getDisplay(), getContentWindow()); } finally { XToolkit.awtUnlock(); } }
Example #7
Source File: XWindow.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
final public void xSetBackground(Color c) { XToolkit.awtLock(); try { winBackground(c); // fix for 6558510: handle sun.awt.noerasebackground flag, // see doEraseBackground() and preInit() methods in XCanvasPeer if (!doEraseBackground()) { return; } // 6304250: XAWT: Items in choice show a blue border on OpenGL + Solaris10 when background color is set // Note: When OGL is enabled, surfaceData.pixelFor() will not // return a pixel value appropriate for passing to // XSetWindowBackground(). Therefore, we will use the ColorModel // for this component in order to calculate a pixel value from // the given RGB value. ColorModel cm = getColorModel(); int pixel = PixelConverter.instance.rgbToPixel(c.getRGB(), cm); XlibWrapper.XSetWindowBackground(XToolkit.getDisplay(), getContentWindow(), pixel); XlibWrapper.XClearWindow(XToolkit.getDisplay(), getContentWindow()); } finally { XToolkit.awtUnlock(); } }
Example #8
Source File: XWindow.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
final public void xSetBackground(Color c) { XToolkit.awtLock(); try { winBackground(c); // fix for 6558510: handle sun.awt.noerasebackground flag, // see doEraseBackground() and preInit() methods in XCanvasPeer if (!doEraseBackground()) { return; } // 6304250: XAWT: Items in choice show a blue border on OpenGL + Solaris10 when background color is set // Note: When OGL is enabled, surfaceData.pixelFor() will not // return a pixel value appropriate for passing to // XSetWindowBackground(). Therefore, we will use the ColorModel // for this component in order to calculate a pixel value from // the given RGB value. ColorModel cm = getColorModel(); int pixel = PixelConverter.instance.rgbToPixel(c.getRGB(), cm); XlibWrapper.XSetWindowBackground(XToolkit.getDisplay(), getContentWindow(), pixel); XlibWrapper.XClearWindow(XToolkit.getDisplay(), getContentWindow()); } finally { XToolkit.awtUnlock(); } }
Example #9
Source File: XWindow.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public final void xSetBackground(Color c) { XToolkit.awtLock(); try { winBackground(c); // fix for 6558510: handle sun.awt.noerasebackground flag, // see doEraseBackground() and preInit() methods in XCanvasPeer if (!doEraseBackground()) { return; } // 6304250: XAWT: Items in choice show a blue border on OpenGL + Solaris10 when background color is set // Note: When OGL is enabled, surfaceData.pixelFor() will not // return a pixel value appropriate for passing to // XSetWindowBackground(). Therefore, we will use the ColorModel // for this component in order to calculate a pixel value from // the given RGB value. ColorModel cm = getColorModel(); int pixel = PixelConverter.instance.rgbToPixel(c.getRGB(), cm); XlibWrapper.XSetWindowBackground(XToolkit.getDisplay(), getContentWindow(), pixel); XlibWrapper.XClearWindow(XToolkit.getDisplay(), getContentWindow()); } finally { XToolkit.awtUnlock(); } }
Example #10
Source File: SurfaceType.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private SurfaceType(SurfaceType parent, String desc, PixelConverter pixelConverter) { next = parent; this.desc = desc; this.uniqueID = makeUniqueID(desc); this.pixelConverter = pixelConverter; }
Example #11
Source File: SurfaceType.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private SurfaceType(SurfaceType parent, String desc, PixelConverter pixelConverter) { next = parent; this.desc = desc; this.uniqueID = makeUniqueID(desc); this.pixelConverter = pixelConverter; }
Example #12
Source File: SurfaceType.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private SurfaceType(SurfaceType parent, String desc, PixelConverter pixelConverter) { next = parent; this.desc = desc; this.uniqueID = makeUniqueID(desc); this.pixelConverter = pixelConverter; }
Example #13
Source File: SurfaceType.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private SurfaceType(SurfaceType parent, String desc, PixelConverter pixelConverter) { next = parent; this.desc = desc; this.uniqueID = makeUniqueID(desc); this.pixelConverter = pixelConverter; }
Example #14
Source File: SurfaceType.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private SurfaceType(SurfaceType parent, String desc, PixelConverter pixelConverter) { next = parent; this.desc = desc; this.uniqueID = makeUniqueID(desc); this.pixelConverter = pixelConverter; }
Example #15
Source File: SurfaceType.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private SurfaceType(SurfaceType parent, String desc, PixelConverter pixelConverter) { next = parent; this.desc = desc; this.uniqueID = makeUniqueID(desc); this.pixelConverter = pixelConverter; }
Example #16
Source File: SurfaceType.java From Bytecoder with Apache License 2.0 | 5 votes |
private SurfaceType(SurfaceType parent, String desc, PixelConverter pixelConverter) { next = parent; this.desc = desc; this.uniqueID = makeUniqueID(desc); this.pixelConverter = pixelConverter; }
Example #17
Source File: SurfaceType.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private SurfaceType(SurfaceType parent, String desc, PixelConverter pixelConverter) { next = parent; this.desc = desc; this.uniqueID = makeUniqueID(desc); this.pixelConverter = pixelConverter; }
Example #18
Source File: SurfaceType.java From hottub with GNU General Public License v2.0 | 5 votes |
private SurfaceType(SurfaceType parent, String desc, PixelConverter pixelConverter) { next = parent; this.desc = desc; this.uniqueID = makeUniqueID(desc); this.pixelConverter = pixelConverter; }
Example #19
Source File: SurfaceType.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private SurfaceType(SurfaceType parent, String desc, PixelConverter pixelConverter) { next = parent; this.desc = desc; this.uniqueID = makeUniqueID(desc); this.pixelConverter = pixelConverter; }
Example #20
Source File: SurfaceType.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private SurfaceType(SurfaceType parent, String desc, PixelConverter pixelConverter) { next = parent; this.desc = desc; this.uniqueID = makeUniqueID(desc); this.pixelConverter = pixelConverter; }
Example #21
Source File: SurfaceType.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
private SurfaceType(SurfaceType parent, String desc, PixelConverter pixelConverter) { next = parent; this.desc = desc; this.uniqueID = makeUniqueID(desc); this.pixelConverter = pixelConverter; }
Example #22
Source File: SurfaceType.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private SurfaceType(SurfaceType parent, String desc, PixelConverter pixelConverter) { next = parent; this.desc = desc; this.uniqueID = makeUniqueID(desc); this.pixelConverter = pixelConverter; }
Example #23
Source File: SurfaceType.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
private SurfaceType(SurfaceType parent, String desc, PixelConverter pixelConverter) { next = parent; this.desc = desc; this.uniqueID = makeUniqueID(desc); this.pixelConverter = pixelConverter; }
Example #24
Source File: SurfaceType.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public PixelConverter getPixelConverter() { return pixelConverter; }
Example #25
Source File: SurfaceType.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public SurfaceType deriveSubType(String desc, PixelConverter pixelConverter) { return new SurfaceType(this, desc, pixelConverter); }
Example #26
Source File: SurfaceType.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public PixelConverter getPixelConverter() { return pixelConverter; }
Example #27
Source File: SurfaceType.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public SurfaceType deriveSubType(String desc, PixelConverter pixelConverter) { return new SurfaceType(this, desc, pixelConverter); }
Example #28
Source File: SurfaceType.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public SurfaceType deriveSubType(String desc, PixelConverter pixelConverter) { return new SurfaceType(this, desc, pixelConverter); }
Example #29
Source File: SurfaceType.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public PixelConverter getPixelConverter() { return pixelConverter; }
Example #30
Source File: SurfaceType.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
public PixelConverter getPixelConverter() { return pixelConverter; }