|
|||||||||
| Home >> All >> [ apg_config overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
apg_config
Class APGImageCache

java.lang.Objectapg_config.APGImageCache
- public class APGImageCache
- extends java.lang.Object
Maintains a single cache for files of a specific size (as defined by the supported sizes of APGImageCache).
| Field Summary | |
private java.awt.Image |
broken
|
private java.io.File |
cacheDir
|
private java.lang.Object |
diskCacheMutex
|
private int |
width
|
| Constructor Summary | |
APGImageCache(java.io.File dir,
java.lang.String name,
int iw)
|
|
| Method Summary | |
private void |
cacheWriteThrough(APGEntryItem item,
java.awt.Image img)
|
java.awt.Image |
createThumbnail(APGEntryItem item)
This will force a load of the image async, replying to self about the load state as time goes on. |
boolean |
destroyCacheFiles()
|
private java.io.File |
getCacheFile(APGEntryItem item)
|
int |
getCacheIconWidth()
|
boolean |
initialise()
|
boolean |
isImageCachedOnDisk(APGEntryItem item)
|
java.awt.Image |
readCacheEntryFromDisk(APGEntryItem item)
|
private void |
writeCacheEntry(APGEntryItem item,
java.awt.Image img)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
cacheDir
private java.io.File cacheDir
width
private int width
broken
private java.awt.Image broken
diskCacheMutex
private java.lang.Object diskCacheMutex
| Constructor Detail |
APGImageCache
public APGImageCache(java.io.File dir, java.lang.String name, int iw)
| Method Detail |
initialise
public boolean initialise()
getCacheIconWidth
public int getCacheIconWidth()
destroyCacheFiles
public boolean destroyCacheFiles()
createThumbnail
public java.awt.Image createThumbnail(APGEntryItem item)
- This will force a load of the image async, replying to self
about the load state as time goes on.
cacheWriteThrough
private void cacheWriteThrough(APGEntryItem item, java.awt.Image img)
isImageCachedOnDisk
public boolean isImageCachedOnDisk(APGEntryItem item)
readCacheEntryFromDisk
public java.awt.Image readCacheEntryFromDisk(APGEntryItem item)
writeCacheEntry
private void writeCacheEntry(APGEntryItem item, java.awt.Image img)
getCacheFile
private java.io.File getCacheFile(APGEntryItem item)
|
|||||||||
| Home >> All >> [ apg_config overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
apg_config.APGImageCache