ij2x.ui.jai.imageio
Class ImageLoaderJAI
java.lang.Object
ij2x.ui.jai.imageio.ImageLoaderJAI
- All Implemented Interfaces:
- ListSelectListener, java.util.EventListener
public class ImageLoaderJAI
- extends java.lang.Object
- implements ListSelectListener
Loads an image from a local directory using the JAI Image I/O package.Once an
image is loaded, it fires the imageLoaded event to the registered listeners.
- Version:
- 1.0 26 Juli 2003
- Author:
- Mahdi Rawak
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageLoaderJAI
public ImageLoaderJAI()
getInstance
public static ImageLoaderJAI getInstance()
- Return the single instance of this class.
loadImage
public PlanarImage loadImage(java.lang.String path)
readAsPlanarImage
public static PlanarImage readAsPlanarImage(java.lang.String filename)
setLoadedImage
public void setLoadedImage(PlanarImage img)
getLoadedImage
public PlanarImage getLoadedImage()
loadFile
public void loadFile(ListSelectEvent e)
- Description copied from interface:
ListSelectListener
- This method is typically called whenever a list is selected.
The ListSelectEvent carries the list select event data. This
includes the list and the path.
- Specified by:
loadFile
in interface ListSelectListener
- Parameters:
e
- the ListSelectEvent.
addPlanarImageLoadedListener
public void addPlanarImageLoadedListener(PlanarImageLoadedListener il)
removePlanarImageLoadedListener
public void removePlanarImageLoadedListener(PlanarImageLoadedListener il)
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener pl)
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener pl)