|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cybertory.MSS.RImageFileLibrary
A library of image files, either in a directory or as specified in a hash containing a map to the image file locations.
Constructor Summary | |
RImageFileLibrary(java.io.File directory)
Initialize a library of all the files in the given directory. |
|
RImageFileLibrary(java.io.File directory,
java.lang.String patternStr)
Initialize a library of the files matching the given pattern string in the given directory. |
|
RImageFileLibrary(java.io.File directory,
java.lang.String[] extensions)
Initialize a library of the files having one of the given list of extensions in the given directory. |
|
RImageFileLibrary(java.util.HashMap fileMap)
|
Method Summary | |
java.awt.image.RenderedImage |
getImage(java.lang.String key)
Retrieve an image from the library. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RImageFileLibrary(java.util.HashMap fileMap)
public RImageFileLibrary(java.io.File directory)
directory
- the directory containing image files for the librarypublic RImageFileLibrary(java.io.File directory, java.lang.String patternStr)
directory
- the directory containing image files for the librarypatternStr
- the filename pattern that library members must matchpublic RImageFileLibrary(java.io.File directory, java.lang.String[] extensions)
directory
- the directory containing image files for the libraryextensions
- the filename extensions files must matchMethod Detail |
public java.awt.image.RenderedImage getImage(java.lang.String key)
getImage
in interface RImageLibrary
key
- the identifying key of the image file
RenderedImage
object for the
given key.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |