Lines Matching defs:image
104 * Sets the cached image for the specified constraints.
106 * @param image The image to store in cache
107 * @param config The graphics configuration, needed if cached image is a Volatile Image. Used as part of cache key
108 * @param w The image width, used as part of cache key
109 * @param h The image height, used as part of cache key
110 * @param scale The image scale factor, used as part of cache key
111 * @return true if the image could be cached, false otherwise.
113 public boolean setImage(final Image image,
126 if (ref != null && ref.get() == image) return true;
134 // add new image to pixel count
135 final int newPixelCount = image.getWidth(null) * image.getHeight(null);
158 map.put(hash, new PixelCountSoftReference(image, referenceQueue, newPixelCount, hash, config, w, h, scale, state));
177 * Extended SoftReference that stores the pixel count even after the image
215 // /** Gets the rendered image for this painter at the requested size, either from cache or create a new one */
227 // //If the buffer status is incompatible or restored, then we need to re-render to the volatile image