|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ngs.image.ImageSource
com.ngs.image.source.DefaultThumbnailSource
public abstract class DefaultThumbnailSource
Implements a default method of behavior for ImageSources to generate Thumbnails. By default, the thumbnail size is 100 x 200. This can be changed by the alternate constructor.
| Constructor Summary | |
|---|---|
protected |
DefaultThumbnailSource()
Constructs a DefaultThumbnailSource that generates Thumbnails 100x200 pixels. |
protected |
DefaultThumbnailSource(int thumbWidth,
int thumbHeight)
Constructs a DefaultThumbnailSource that generates Thumbnails with the specified dimensions |
| Method Summary | |
|---|---|
abstract void |
dispose()
Implements ImageSource |
abstract BufferedImage |
getImage(int index)
Implements ImageSource |
abstract int |
getImageCount()
Implements ImageSource |
abstract String |
getImageName()
Implements ImageSource |
Image |
getThumbnail(int index)
Returns a fast-scaled instance of getImage(index) the size of thumbWidth x thumbHeight. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DefaultThumbnailSource()
protected DefaultThumbnailSource(int thumbWidth,
int thumbHeight)
thumbWidth - the width of generated thumbnailsthumbHeight - the height of generated thumbnails| Method Detail |
|---|
public abstract BufferedImage getImage(int index)
getImage in class ImageSourceindex - The image to obtain from this ImageSource.
public Image getThumbnail(int index)
getThumbnail in class ImageSourceindex - The index of the image to retrieve.
public abstract int getImageCount()
getImageCount in class ImageSourcepublic abstract void dispose()
dispose in class ImageSourcepublic abstract String getImageName()
getImageName in class ImageSource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||