|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ImageSource
A interface for retrieving images by key. The key abstracts away the path to
the image resource, effectively acting as an alias. For example, the key
wizard.pageImage
may map to a image resource in the classpath
at /images/wizard/title_banner.gif
Image source implementations are responsible for resolving the underlying image resource and loading it into memory. They may also cache image resources.
Method Summary | |
---|---|
Image |
getImage(String key)
Loads the image with the specified key. |
AwtImageResource |
getImageResource(String key)
Returns the image resource indexed by the specified key. |
Method Detail |
---|
Image getImage(String key)
If the load is successful, the image resource is returned. If the load fails, a broken image indicator is returned if it is set for this source. If not set, an exception is thrown.
key
- The image key
NoSuchImageResourceException,
- if no image could be found and no broken image indicator is
set.AwtImageResource getImageResource(String key)
key
- The image key.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |