|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ngs.image.ImageSource
public abstract class ImageSource
Defines the interface by which ImageModel obtains Images.
ImageSources may contain multiple images, retrievable by indexing from
zero to the value of getImageCount()
. Multi-page TIFF images,
animated GIFs, etc. may be examples of ImageSources that would contain more
than one image. There is also a method for getting a smaller image to display
as a thumbnail. This feature is currently unused, but it's there.
Constructor Summary | |
---|---|
ImageSource()
|
Method Summary | |
---|---|
abstract void |
dispose()
Release any cached resources. |
abstract BufferedImage |
getImage(int index)
Retrieve the image at the given index. |
abstract int |
getImageCount()
Gets the number of Images in this ImageSource. |
abstract String |
getImageName()
Gets the name of this Image |
abstract Image |
getThumbnail(int index)
Retrieve a thumbnail of the image at the given index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageSource()
Method Detail |
---|
public abstract BufferedImage getImage(int index)
If there is no image at the specified index, implementations should
return null.
index
- The image to obtain from this ImageSource.
public abstract Image getThumbnail(int index)
If there is no image at the specified index, or if we do not support
thumbnails, implementations should return null
index
- The image to obtain a thumbnail for from this ImageSource.
public abstract int getImageCount()
public abstract String getImageName()
public abstract void dispose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |