|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.swing.common.util.ImageCache.ImageCreator
This class holds an image with a soft reference to it. The class is abstract, because the first time - or after removing the image from the cache - the image must be (re)created. This must be done by the {@link #createImageIcon() method.
| Constructor Summary | |
ImageCache.ImageCreator()
|
|
| Method Summary | |
void |
clearImageReference()
Clears the reference to the last created ImageIcon to free up
the space consumed by the image and force reallocation of the image
the next time it is queried. |
abstract javax.swing.ImageIcon |
createImageIcon()
Creates a new ImageIcon instance. |
javax.swing.ImageIcon |
getImageIcon()
Returns the ImageIcon referred. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImageCache.ImageCreator()
| Method Detail |
public abstract javax.swing.ImageIcon createImageIcon()
ImageIcon instance. The implementor of this
method should not store the refernce returned anywhere!
public final javax.swing.ImageIcon getImageIcon()
ImageIcon referred. This is eighter a previously
created ImageIcon instance, or a newly created.
public final void clearImageReference()
ImageIcon to free up
the space consumed by the image and force reallocation of the image
the next time it is queried.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||