public abstract class AbstractImageAdapter extends java.lang.Object implements ImageAdapter
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
sourceImage |
| Constructor and Description |
|---|
AbstractImageAdapter() |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getImage() |
protected ImageInfo |
getImageInfo(java.io.File imageFile)
Utility method to get ImageInfo from an image file.
|
int |
getMaxHeight() |
int |
getMaxWidth() |
protected java.io.File |
getThumbnail(java.io.File image,
int maxWidth)
An utility method to create, or retrieve the existing thumbnail.
|
void |
setImage(java.io.File sourceImage) |
void |
setMaxHeight(int maxHeight) |
void |
setMaxWidth(int maxWidth) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAdaptedImagepublic void setImage(java.io.File sourceImage)
setImage in interface ImageAdapterpublic java.io.File getImage()
getImage in interface ImageAdapterpublic void setMaxHeight(int maxHeight)
public int getMaxHeight()
public void setMaxWidth(int maxWidth)
public int getMaxWidth()
protected ImageInfo getImageInfo(java.io.File imageFile)
imageFile - the image FileImageInfo of the given image fileprotected java.io.File getThumbnail(java.io.File image,
int maxWidth)
image - the image FilemaxWidth - the max width of imageCopyright © 2001-2019 Jalios SA. All Rights Reserved.