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

项目:openjdk-jdk10    文件:SunToolkit.java   
static Image getImageFromHash(Toolkit tk, URL url) {
    checkPermissions(url);
    synchronized (urlImgCache) {
        String key = url.toString();
        Image img = (Image)urlImgCache.get(key);
        if (img == null) {
            try {
                img = tk.createImage(new URLImageSource(url));
                urlImgCache.put(key, img);
            } catch (Exception e) {
            }
        }
        return img;
    }
}
项目:openjdk9    文件:SunToolkit.java   
static Image getImageFromHash(Toolkit tk, URL url) {
    checkPermissions(url);
    synchronized (urlImgCache) {
        String key = url.toString();
        Image img = (Image)urlImgCache.get(key);
        if (img == null) {
            try {
                img = tk.createImage(new URLImageSource(url));
                urlImgCache.put(key, img);
            } catch (Exception e) {
            }
        }
        return img;
    }
}
项目:libbluray    文件:BDToolkitBase.java   
public Image createImage(URL url) {
    if (BDJXletContext.getCurrentContext() == null) {
        logger.error("createImage(): no context " + Logger.dumpStack());
    }
    ImageProducer ip = new URLImageSource(url);
    Image newImage = createImage(ip);
    return newImage;
}
项目:OpenJSharp    文件:AppletImageRef.java   
/**
 * Reconsitute the image.  Only called when the ref has been flushed.
 */
public Object reconstitute() {
    Image img = Toolkit.getDefaultToolkit().createImage(new URLImageSource(url));
    return img;
}
项目:jdk8u-jdk    文件:AppletImageRef.java   
/**
 * Reconsitute the image.  Only called when the ref has been flushed.
 */
public Object reconstitute() {
    Image img = Toolkit.getDefaultToolkit().createImage(new URLImageSource(url));
    return img;
}
项目:openjdk-jdk10    文件:SunToolkit.java   
@Override
public Image createImage(URL url) {
    checkPermissions(url);
    return createImage(new URLImageSource(url));
}
项目:openjdk-jdk10    文件:AppletImageRef.java   
/**
 * Reconsitute the image.  Only called when the ref has been flushed.
 */
public Image reconstitute() {
    Image img = Toolkit.getDefaultToolkit().createImage(new URLImageSource(url));
    return img;
}
项目:openjdk9    文件:SunToolkit.java   
@Override
public Image createImage(URL url) {
    checkPermissions(url);
    return createImage(new URLImageSource(url));
}
项目:openjdk9    文件:AppletImageRef.java   
/**
 * Reconsitute the image.  Only called when the ref has been flushed.
 */
public Image reconstitute() {
    Image img = Toolkit.getDefaultToolkit().createImage(new URLImageSource(url));
    return img;
}
项目:jdk8u_jdk    文件:AppletImageRef.java   
/**
 * Reconsitute the image.  Only called when the ref has been flushed.
 */
public Object reconstitute() {
    Image img = Toolkit.getDefaultToolkit().createImage(new URLImageSource(url));
    return img;
}
项目:lookaside_java-1.8.0-openjdk    文件:AppletImageRef.java   
/**
 * Reconsitute the image.  Only called when the ref has been flushed.
 */
public Object reconstitute() {
    Image img = Toolkit.getDefaultToolkit().createImage(new URLImageSource(url));
    return img;
}
项目:infobip-open-jdk-8    文件:AppletImageRef.java   
/**
 * Reconsitute the image.  Only called when the ref has been flushed.
 */
public Object reconstitute() {
    Image img = Toolkit.getDefaultToolkit().createImage(new URLImageSource(url));
    return img;
}
项目:jdk8u-dev-jdk    文件:AppletImageRef.java   
/**
 * Reconsitute the image.  Only called when the ref has been flushed.
 */
public Object reconstitute() {
    Image img = Toolkit.getDefaultToolkit().createImage(new URLImageSource(url));
    return img;
}
项目:jdk7-jdk    文件:AppletImageRef.java   
/**
 * Reconsitute the image.  Only called when the ref has been flushed.
 */
public Object reconstitute() {
    Image img = Toolkit.getDefaultToolkit().createImage(new URLImageSource(url));
    return img;
}
项目:openjdk-source-code-learn    文件:AppletImageRef.java   
/**
 * Reconsitute the image.  Only called when the ref has been flushed.
 */
public Object reconstitute() {
    Image img = Toolkit.getDefaultToolkit().createImage(new URLImageSource(url));
    return img;
}
项目:OLD-OpenJDK8    文件:AppletImageRef.java   
/**
 * Reconsitute the image.  Only called when the ref has been flushed.
 */
public Object reconstitute() {
    Image img = Toolkit.getDefaultToolkit().createImage(new URLImageSource(url));
    return img;
}
项目:openjdk-jdk7u-jdk    文件:AppletImageRef.java   
/**
 * Reconsitute the image.  Only called when the ref has been flushed.
 */
public Object reconstitute() {
    Image img = Toolkit.getDefaultToolkit().createImage(new URLImageSource(url));
    return img;
}
项目:libbluray    文件:HBackgroundImage.java   
public HBackgroundImage(URL contents) {
    producer = new URLImageSource(contents);
    img = Toolkit.getDefaultToolkit().createImage(producer);
}
项目:openjdk-icedtea7    文件:AppletImageRef.java   
/**
 * Reconsitute the image.  Only called when the ref has been flushed.
 */
public Object reconstitute() {
    Image img = Toolkit.getDefaultToolkit().createImage(new URLImageSource(url));
    return img;
}