|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.smartwerkz.jupload.classic.image.ImageCache
public class ImageCache
Caches Image information for once read imagefiles.
| Constructor Summary | |
|---|---|
ImageCache()
|
|
| Method Summary | |
|---|---|
static boolean |
busy()
|
static void |
cancelLoad()
|
static java.awt.image.BufferedImage |
createThumbnail(UploadImageFile file)
|
static void |
execute(Task t)
The ImageCache's Executor executes the given task |
static ImageInfo |
getInfo(java.io.File file)
|
static java.awt.image.BufferedImage |
getOrCreateScaledThumbnail(java.io.File file,
int w,
int h)
Returns a scaled thumbnail. |
static java.awt.image.BufferedImage |
getOrCreateScaledThumbnail(UploadImageFile node,
int w,
int h)
Returns a scaled thumbnail. |
static void |
getOrCreateScaledThumbnailLater(ImageLoadTask task)
Instantly returns and will call the given ImageTask's methods when succeeded caching or failed respectively. |
static java.awt.image.BufferedImage |
getOrCreateThumbnail(java.io.File file)
Returns a thumbnail for the given file from the cache. |
static java.awt.image.BufferedImage |
getOrCreateThumbnail(UploadImageFile node)
Returns a thumbnail for the given file from the cache. |
static java.awt.image.BufferedImage |
getThumbnail(java.io.File file)
Returns a thumbnail for the given file from the cache. |
static java.awt.image.BufferedImage |
getThumbnail(UploadImageFile node)
Returns a thumbnail for the given file from the cache. |
static void |
init(java.awt.Dimension maxThumbnailSize,
boolean renderSmooth)
|
static boolean |
isSmooth()
|
static void |
setSmooth(boolean renderSmooth)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageCache()
| Method Detail |
|---|
public static void init(java.awt.Dimension maxThumbnailSize,
boolean renderSmooth)
public static void setSmooth(boolean renderSmooth)
public static boolean isSmooth()
public static void cancelLoad()
public static boolean busy()
public static ImageInfo getInfo(java.io.File file)
public static java.awt.image.BufferedImage getThumbnail(java.io.File file)
public static java.awt.image.BufferedImage getThumbnail(UploadImageFile node)
public static java.awt.image.BufferedImage getOrCreateThumbnail(java.io.File file)
throws java.io.IOException
java.io.IOException
public static java.awt.image.BufferedImage getOrCreateThumbnail(UploadImageFile node)
throws java.io.IOException
java.io.IOException
public static java.awt.image.BufferedImage getOrCreateScaledThumbnail(UploadImageFile node,
int w,
int h)
throws java.io.IOException
java.io.IOException
public static java.awt.image.BufferedImage getOrCreateScaledThumbnail(java.io.File file,
int w,
int h)
throws java.io.IOException
java.io.IOExceptionpublic static void getOrCreateScaledThumbnailLater(ImageLoadTask task)
public static java.awt.image.BufferedImage createThumbnail(UploadImageFile file)
throws java.io.IOException
java.io.IOExceptionpublic static void execute(Task t)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||