photospace.graphics
Class ImageCache

java.lang.Object
  extended byphotospace.graphics.ImageCache
All Implemented Interfaces:
java.io.Serializable

public class ImageCache
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
ImageCache()
           
 
Method Summary
 void cache(java.awt.image.BufferedImage image, java.lang.String path, Transform transform)
           
 java.io.File cachedFile(java.lang.String path, Transform transform)
           
 java.awt.image.BufferedImage scale(java.awt.image.BufferedImage image, java.lang.String path, Transform transform)
           
 void setFilesystem(FileSystem filesystem)
           
 void setRoot(java.io.File root)
           
 void setWatcher(FileSystemWatcher watcher)
           
 int sync()
           
 int sync(java.io.File[] files)
           
 boolean update(java.io.File file, java.lang.String path, Transform[] transforms)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageCache

public ImageCache()
Method Detail

setRoot

public void setRoot(java.io.File root)

sync

public int sync()

sync

public int sync(java.io.File[] files)

update

public boolean update(java.io.File file,
                      java.lang.String path,
                      Transform[] transforms)

scale

public java.awt.image.BufferedImage scale(java.awt.image.BufferedImage image,
                                          java.lang.String path,
                                          Transform transform)
                                   throws java.io.IOException
Throws:
java.io.IOException

cache

public void cache(java.awt.image.BufferedImage image,
                  java.lang.String path,
                  Transform transform)
           throws java.io.IOException
Throws:
java.io.IOException

cachedFile

public java.io.File cachedFile(java.lang.String path,
                               Transform transform)

setFilesystem

public void setFilesystem(FileSystem filesystem)

setWatcher

public void setWatcher(FileSystemWatcher watcher)