uic.model
Class IconFactory.ZipFileRepository
java.lang.Object
uic.model.IconFactory.ZipFileRepository
- All Implemented Interfaces:
- IconFactory.Repository
- Enclosing class:
- IconFactory
- protected static class IconFactory.ZipFileRepository
- extends Object
- implements IconFactory.Repository
A repository to allow things like the jlfg jar to be used
Method Summary |
InputStream |
getImage(String name,
int size)
Returns the input stream of the requested image, or null when none found. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IconFactory.ZipFileRepository
public IconFactory.ZipFileRepository(String baseDir)
throws IOException
getImage
public InputStream getImage(String name,
int size)
throws IOException
- Description copied from interface:
IconFactory.Repository
- Returns the input stream of the requested image, or null when none found.
All registered repositories will be asked to provide an image untill one
returns a parsable image.
- Specified by:
getImage
in interface IconFactory.Repository
- Parameters:
name
- the name of the image, this is the name as specified in the
getIcon
method which again is the same name
as registered in an action
.size
- the requested size. If the wanted size is not found the returned
size will be used to scale to the wanted size.
- Returns:
- an InputStream for the image, or null if nothing found.
- Throws:
IOException
Copyright © 2002,2003 Thomas Zander Available under the Free Apache licence