|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jomic.comic.ComicCache
public final class ComicCache
Cache for comic related extracted archives, images, thumbnails.
Nested Class Summary | |
---|---|
class |
ComicCache.TitleImageCache
ImageCache for comic title pages. |
Field Summary | |
---|---|
static int |
MAX_THUMB_HEIGHT
|
static int |
MAX_THUMB_WIDTH
|
Fields inherited from interface net.sf.jomic.tools.StandardConstants |
---|
KILO_BYTE, MEGA_BYTE, TICK |
Method Summary | |
---|---|
void |
dispose()
|
long |
getApplicationMemory()
Approximate number of bytes available for application and unavailable for caches. |
ArchiveCache |
getArchiveCache()
|
long |
getAvailableMemory()
Total memory available to application and caches. |
java.io.File |
getCacheDir()
|
java.awt.image.RenderedImage |
getImage(java.io.File imageFile)
|
ImageCache |
getImageCache()
|
long |
getImageCacheMemory()
Approximate number of bytes available for image cache. |
java.awt.image.RenderedImage |
geTitleImage(java.io.File comicFile)
Get thumbnail for title image of comicFile . |
net.sf.jomic.comic.ComicCache.ThumbImageCache |
getThumbCache()
|
long |
getThumbCacheMemory()
Approximate number of bytes available for thumbnail cache. |
int |
getThumbHeight()
|
java.awt.image.RenderedImage |
getThumbnail(java.io.File imageFile)
Get thumbnail for imageFile . |
java.awt.image.RenderedImage |
getThumbnail(java.io.File imageFile,
ImageInCacheListener listener)
Get thumbnail for imageFile . |
int |
getThumbWidth()
|
ComicCache.TitleImageCache |
getTitleCache()
|
long |
getTitleCacheMemory()
Approximate number of bytes available for title thumbnail cache. |
java.awt.image.RenderedImage |
getTitleImage(java.io.File comicFile,
ImageInCacheListener listener)
Get thumbnail for title image for comicFile . |
static ComicCache |
instance()
|
void |
setUp(java.io.File newCacheDir)
Setup the cache. |
void |
setUp(java.io.File newCacheDir,
long newMaxArchiveCacheSize)
Setup the cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_THUMB_HEIGHT
public static final int MAX_THUMB_WIDTH
Method Detail |
---|
public void setUp(java.io.File newCacheDir) throws java.io.IOException
java.io.IOException
public void setUp(java.io.File newCacheDir, long newMaxArchiveCacheSize) throws java.io.IOException
java.io.IOException
public java.awt.image.RenderedImage geTitleImage(java.io.File comicFile)
comicFile
. If there is no such thumbnail in
the cache, compute a new one and put it in the cache.
public long getApplicationMemory()
public ArchiveCache getArchiveCache()
public long getAvailableMemory()
public java.io.File getCacheDir()
public java.awt.image.RenderedImage getImage(java.io.File imageFile) throws java.io.IOException
java.io.IOException
public ImageCache getImageCache()
public long getImageCacheMemory()
public net.sf.jomic.comic.ComicCache.ThumbImageCache getThumbCache()
public long getThumbCacheMemory()
public int getThumbHeight()
public int getThumbWidth()
public java.awt.image.RenderedImage getThumbnail(java.io.File imageFile)
imageFile
. If there is no such thumbnail in the cache,
compute a new one and put it in the cache.
public java.awt.image.RenderedImage getThumbnail(java.io.File imageFile, ImageInCacheListener listener)
imageFile
. If there is no such thumbnail in the cache, return
a placeholder image immediately, and notify listener
when the actual thumbnail
is ready.
public ComicCache.TitleImageCache getTitleCache()
public long getTitleCacheMemory()
public java.awt.image.RenderedImage getTitleImage(java.io.File comicFile, ImageInCacheListener listener)
comicFile
. If there is no such thumbnail in
the cache, return a placeholder image immediately, and notify listener
when the
actual thumbnail is ready.
public static ComicCache instance()
public void dispose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |