com.sun.jimi.core
Interface StorageFactory

All Known Implementing Classes:
JimiStorageFactory

public abstract interface StorageFactory

Provide a common interface to provide an extension mechanism for replacing the default storage classes that JimiImage uses for actual data storage and handling.


Method Summary
 com.sun.jimi.core.JimiImageStore createStorage(JimiImage ji, int width, int height, java.awt.image.ColorModel cm)
           
 

Method Detail

createStorage

public com.sun.jimi.core.JimiImageStore createStorage(JimiImage ji,
                                                      int width,
                                                      int height,
                                                      java.awt.image.ColorModel cm)
Parameters:
ji - The JimiImageImpl class that requires the JimiImageStore implementation It is passed as a JimiImage as a convenience.
width - width of image data to store
height - height of image data to store
cm - ColorModel for the image data to store
Returns:
a JimiImageStore class implementayion suitable for holding the image data of the given width/height and ColorModel.