Home » openjdk-7 » javax.swing.plaf.nimbus » [javadoc | source]
javax.swing.plaf.nimbus
class: ImageCache [javadoc | source]
java.lang.Object
   javax.swing.plaf.nimbus.ImageCache
ImageCache - A fixed pixel count sized cache of Images keyed by arbitrary set of arguments. All images are held with SoftReferences so they will be dropped by the GC if heap memory gets tight. When our size hits max pixel count least recently requested images are removed first.
Constructor:
 public ImageCache() 
 public ImageCache(int maxPixelCount,
    int maxSingleImagePixelSize) 
Method from javax.swing.plaf.nimbus.ImageCache Summary:
flush,   getImage,   getInstance,   isImageCachable,   setImage
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.nimbus.ImageCache Detail:
 public  void flush() 
    Clear the cache
 public Image getImage(GraphicsConfiguration config,
    int w,
    int h,
    Object args) 
    Get the cached image for given keys
 static ImageCache getInstance() 
    Get static singleton instance
 public boolean isImageCachable(int w,
    int h) 
    Check if the image size is to big to be stored in the cache
 public boolean setImage(Image image,
    GraphicsConfiguration config,
    int w,
    int h,
    Object args) 
    Sets the cached image for the specified constraints.