|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hdcookbook.grin.util.ImageManager
public class ImageManager
This class manages a set of images. It loads and flushes them as needed.
Method Summary | |
---|---|
static void |
getImage(ManagedImage im)
This is like getImage(String) , but for the case where
you already have the ManagedImage instance. |
static ManagedImage |
getImage(java.lang.String name)
Get an image. |
static ManagedImage |
getImage(java.net.URL url)
Get an image from a URL. |
static void |
ungetImage(ManagedImage im)
Called when an image acquired with getImage is no longer needed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ManagedImage getImage(java.lang.String name)
ImageManager first looks within known mosaics, then looks for an individual image file.
ungetImage(com.hdcookbook.grin.util.ManagedImage)
,
ManagedImage
public static ManagedImage getImage(java.net.URL url)
ImageManager first looks within known mosaics, then looks for an individual image file.
ungetImage(com.hdcookbook.grin.util.ManagedImage)
,
ManagedImage
public static void getImage(ManagedImage im)
getImage(String)
, but for the case where
you already have the ManagedImage instance. It just increments the
reference count, without needing to do a hash table lookup.
See the ManagedImage contract for more details.
java.lang.IllegalStateException
- if im.isReferenced() is falseManagedImage
public static void ungetImage(ManagedImage im)
getImage(java.lang.String)
,
ManagedImage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |