Java 类sun.awt.image.PixelConverter 实例源码

项目:OpenJSharp    文件:XWindow.java   
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();
    }
}
项目:jdk8u-jdk    文件:XWindow.java   
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();
    }
}
项目:openjdk-jdk10    文件:XWindow.java   
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();
    }
}
项目:openjdk9    文件:XWindow.java   
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();
    }
}
项目:jdk8u_jdk    文件:XWindow.java   
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();
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:XWindow.java   
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();
    }
}
项目:infobip-open-jdk-8    文件:XWindow.java   
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();
    }
}
项目:jdk8u-dev-jdk    文件:XWindow.java   
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();
    }
}
项目:jdk7-jdk    文件:XWindow.java   
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);
    }
    finally {
        XToolkit.awtUnlock();
    }
}
项目:openjdk-source-code-learn    文件:XWindow.java   
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);
    }
    finally {
        XToolkit.awtUnlock();
    }
}
项目:OLD-OpenJDK8    文件:XWindow.java   
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();
    }
}
项目:openjdk-jdk7u-jdk    文件:XWindow.java   
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);
    }
    finally {
        XToolkit.awtUnlock();
    }
}
项目:openjdk-icedtea7    文件:XWindow.java   
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);
    }
    finally {
        XToolkit.awtUnlock();
    }
}
项目:OpenJSharp    文件:SurfaceType.java   
private SurfaceType(SurfaceType parent, String desc,
                    PixelConverter pixelConverter) {
    next = parent;
    this.desc = desc;
    this.uniqueID = makeUniqueID(desc);
    this.pixelConverter = pixelConverter;
}
项目:jdk8u-jdk    文件:SurfaceType.java   
private SurfaceType(SurfaceType parent, String desc,
                    PixelConverter pixelConverter) {
    next = parent;
    this.desc = desc;
    this.uniqueID = makeUniqueID(desc);
    this.pixelConverter = pixelConverter;
}
项目:openjdk-jdk10    文件:SurfaceType.java   
private SurfaceType(SurfaceType parent, String desc,
                    PixelConverter pixelConverter) {
    next = parent;
    this.desc = desc;
    this.uniqueID = makeUniqueID(desc);
    this.pixelConverter = pixelConverter;
}
项目:openjdk9    文件:SurfaceType.java   
private SurfaceType(SurfaceType parent, String desc,
                    PixelConverter pixelConverter) {
    next = parent;
    this.desc = desc;
    this.uniqueID = makeUniqueID(desc);
    this.pixelConverter = pixelConverter;
}
项目:jdk8u_jdk    文件:SurfaceType.java   
private SurfaceType(SurfaceType parent, String desc,
                    PixelConverter pixelConverter) {
    next = parent;
    this.desc = desc;
    this.uniqueID = makeUniqueID(desc);
    this.pixelConverter = pixelConverter;
}
项目:lookaside_java-1.8.0-openjdk    文件:SurfaceType.java   
private SurfaceType(SurfaceType parent, String desc,
                    PixelConverter pixelConverter) {
    next = parent;
    this.desc = desc;
    this.uniqueID = makeUniqueID(desc);
    this.pixelConverter = pixelConverter;
}
项目:infobip-open-jdk-8    文件:SurfaceType.java   
private SurfaceType(SurfaceType parent, String desc,
                    PixelConverter pixelConverter) {
    next = parent;
    this.desc = desc;
    this.uniqueID = makeUniqueID(desc);
    this.pixelConverter = pixelConverter;
}
项目:jdk8u-dev-jdk    文件:SurfaceType.java   
private SurfaceType(SurfaceType parent, String desc,
                    PixelConverter pixelConverter) {
    next = parent;
    this.desc = desc;
    this.uniqueID = makeUniqueID(desc);
    this.pixelConverter = pixelConverter;
}
项目:jdk7-jdk    文件:SurfaceType.java   
private SurfaceType(SurfaceType parent, String desc,
                    PixelConverter pixelConverter) {
    next = parent;
    this.desc = desc;
    this.uniqueID = makeUniqueID(desc);
    this.pixelConverter = pixelConverter;
}
项目:openjdk-source-code-learn    文件:SurfaceType.java   
private SurfaceType(SurfaceType parent, String desc,
                    PixelConverter pixelConverter) {
    next = parent;
    this.desc = desc;
    this.uniqueID = makeUniqueID(desc);
    this.pixelConverter = pixelConverter;
}
项目:OLD-OpenJDK8    文件:SurfaceType.java   
private SurfaceType(SurfaceType parent, String desc,
                    PixelConverter pixelConverter) {
    next = parent;
    this.desc = desc;
    this.uniqueID = makeUniqueID(desc);
    this.pixelConverter = pixelConverter;
}
项目:openjdk-jdk7u-jdk    文件:SurfaceType.java   
private SurfaceType(SurfaceType parent, String desc,
                    PixelConverter pixelConverter) {
    next = parent;
    this.desc = desc;
    this.uniqueID = makeUniqueID(desc);
    this.pixelConverter = pixelConverter;
}
项目:openjdk-icedtea7    文件:SurfaceType.java   
private SurfaceType(SurfaceType parent, String desc,
                    PixelConverter pixelConverter) {
    next = parent;
    this.desc = desc;
    this.uniqueID = makeUniqueID(desc);
    this.pixelConverter = pixelConverter;
}
项目:OpenJSharp    文件:SurfaceType.java   
public SurfaceType deriveSubType(String desc,
                                 PixelConverter pixelConverter) {
    return new SurfaceType(this, desc, pixelConverter);
}
项目:OpenJSharp    文件:SurfaceType.java   
public PixelConverter getPixelConverter() {
    return pixelConverter;
}
项目:jdk8u-jdk    文件:SurfaceType.java   
public SurfaceType deriveSubType(String desc,
                                 PixelConverter pixelConverter) {
    return new SurfaceType(this, desc, pixelConverter);
}
项目:jdk8u-jdk    文件:SurfaceType.java   
public PixelConverter getPixelConverter() {
    return pixelConverter;
}
项目:openjdk-jdk10    文件:SurfaceType.java   
public SurfaceType deriveSubType(String desc,
                                 PixelConverter pixelConverter) {
    return new SurfaceType(this, desc, pixelConverter);
}
项目:openjdk-jdk10    文件:SurfaceType.java   
public PixelConverter getPixelConverter() {
    return pixelConverter;
}
项目:openjdk9    文件:SurfaceType.java   
public SurfaceType deriveSubType(String desc,
                                 PixelConverter pixelConverter) {
    return new SurfaceType(this, desc, pixelConverter);
}
项目:openjdk9    文件:SurfaceType.java   
public PixelConverter getPixelConverter() {
    return pixelConverter;
}
项目:jdk8u_jdk    文件:SurfaceType.java   
public SurfaceType deriveSubType(String desc,
                                 PixelConverter pixelConverter) {
    return new SurfaceType(this, desc, pixelConverter);
}
项目:jdk8u_jdk    文件:SurfaceType.java   
public PixelConverter getPixelConverter() {
    return pixelConverter;
}
项目:lookaside_java-1.8.0-openjdk    文件:SurfaceType.java   
public SurfaceType deriveSubType(String desc,
                                 PixelConverter pixelConverter) {
    return new SurfaceType(this, desc, pixelConverter);
}
项目:lookaside_java-1.8.0-openjdk    文件:SurfaceType.java   
public PixelConverter getPixelConverter() {
    return pixelConverter;
}
项目:infobip-open-jdk-8    文件:SurfaceType.java   
public SurfaceType deriveSubType(String desc,
                                 PixelConverter pixelConverter) {
    return new SurfaceType(this, desc, pixelConverter);
}
项目:infobip-open-jdk-8    文件:SurfaceType.java   
public PixelConverter getPixelConverter() {
    return pixelConverter;
}