javax.media.jai
Class ImageStack

java.lang.Object
  |
  +--javax.media.jai.CollectionImage
        |
        +--javax.media.jai.ImageStack
All Implemented Interfaces:
Collection, ImageJAI, PropertyChangeEmitter, PropertySource, WritablePropertySource

Deprecated. as of JAI 1.1. Use AttributedImageCollection instead.

public abstract class ImageStack
extends CollectionImage

A class representing a stack of images, each associated with a spatial position/orientation defined in a common coordinate system. The images are of the type javax.media.jai.PlanarImage; the coordinates are of the type java.lang.Object. The tuple (image, coordinate) is represented by class javax.media.jai.CoordinateImage.

This class can be used to represent medical or geophysical images.

See Also:
PlanarImage

Fields inherited from class javax.media.jai.CollectionImage
eventManager, imageCollection, imageFactory, properties, sinks
 
Constructor Summary
protected ImageStack()
          Deprecated. The default constructor.
  ImageStack(Collection images)
          Deprecated. Constructor.
 
Method Summary
 boolean add(Object o)
          Deprecated. Adds a CoordinateImage to this collection.
 Object getCoordinate(PlanarImage pi)
          Deprecated. Returns the coordinate associated with the specified image, or null if pi is null or if no match is found.
 PlanarImage getImage(Object c)
          Deprecated. Returns the image associated with the specified coordinate, or null if c is null or if no match is found.
 boolean remove(Object c)
          Deprecated. Removes the CoordinateImage that contains the specified coordinate from this collection.
 boolean remove(PlanarImage pi)
          Deprecated. Removes the CoordinateImage that contains the specified image from this collection.
 
Methods inherited from class javax.media.jai.CollectionImage
addAll, addPropertyChangeListener, addPropertyChangeListener, addSink, clear, contains, containsAll, get, getImageFactory, getProperty, getProperty, getPropertyClass, getPropertyNames, getPropertyNames, getSinks, isEmpty, iterator, removeAll, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeSink, removeSinks, retainAll, setImageFactory, setProperty, size, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

ImageStack

protected ImageStack()
Deprecated. 
The default constructor.

ImageStack

public ImageStack(Collection images)
Deprecated. 
Constructor.
Parameters:
images - A collection of CoordinateImage.
Throws:
IllegalArgumentException - if images is null.
Method Detail

getImage

public PlanarImage getImage(Object c)
Deprecated. 
Returns the image associated with the specified coordinate, or null if c is null or if no match is found.
Parameters:
c - The specified coordinate object.

getCoordinate

public Object getCoordinate(PlanarImage pi)
Deprecated. 
Returns the coordinate associated with the specified image, or null if pi is null or if no match is found.
Parameters:
pi - The specified planar image.

add

public boolean add(Object o)
Deprecated. 
Adds a CoordinateImage to this collection. If the specified image is null, it is not added to the collection.
Overrides:
add in class CollectionImage
Returns:
true if and only if the CoordinateImage is added to the collection.

remove

public boolean remove(PlanarImage pi)
Deprecated. 
Removes the CoordinateImage that contains the specified image from this collection.
Parameters:
pi - The specified planar image.
Returns:
true if and only if a CoordinateImage containing the specified image is removed from the collection.

remove

public boolean remove(Object c)
Deprecated. 
Removes the CoordinateImage that contains the specified coordinate from this collection.
Overrides:
remove in class CollectionImage
Parameters:
c - The specified coordinate object.
Returns:
true if and only if a CoordinateImage containing the specified coordinate is removed from the collection.