ij2x.ui.jai.imageio
Class ImageLoaderJAI

java.lang.Object
  extended by 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

Constructor Summary
ImageLoaderJAI()
           
 
Method Summary
 void addPlanarImageLoadedListener(PlanarImageLoadedListener il)
           
 void addPropertyChangeListener(java.beans.PropertyChangeListener pl)
           
static ImageLoaderJAI getInstance()
          Return the single instance of this class.
 PlanarImage getLoadedImage()
           
 void loadFile(ListSelectEvent e)
          This method is typically called whenever a list is selected.
 PlanarImage loadImage(java.lang.String path)
           
static PlanarImage readAsPlanarImage(java.lang.String filename)
           
 void removePlanarImageLoadedListener(PlanarImageLoadedListener il)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener pl)
           
 void setLoadedImage(PlanarImage img)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageLoaderJAI

public ImageLoaderJAI()
Method Detail

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)