javax.media.jai
Class ImageSequence

java.lang.Object
  extended byjavax.media.jai.CollectionImage
      extended byjavax.media.jai.ImageSequence
All Implemented Interfaces:
Collection, ImageJAI, PropertyChangeEmitter, PropertySource, WritablePropertySource

Deprecated. as of JAI 1.1. Use AttributedImageCollection instead.

public class ImageSequence
extends CollectionImage

A class representing a sequence of images, each associated with a time stamp and a camera position. The images are of the type javax.media.jai.PlanarImage; the time stamps are of the type float; the camera positions are of the type java.lang.Object. The tuple (image, time stamp, camera position) is represented by class javax.media.jai.SequentialImage.

This class can be used to represent video or time-lapse photography.

See Also:
PlanarImage, SequentialImage

Field Summary
 
Fields inherited from class javax.media.jai.CollectionImage
eventManager, imageCollection, imageFactory, properties, sinks
 
Constructor Summary
protected ImageSequence()
          Deprecated. The default constrctor.
  ImageSequence(Collection images)
          Deprecated. Constructs a class that represents a sequence of images.
 
Method Summary
 boolean add(Object o)
          Deprecated. Adds a SequentialImage to this collection.
 Object getCameraPosition(PlanarImage pi)
          Deprecated. Returns the camera position associated with the specified image, or null if pi is null or if no match is found.
 PlanarImage getImage(float ts)
          Deprecated. Returns the image associated with the specified time stamp, or null if no match is found.
 PlanarImage getImage(Object cp)
          Deprecated. Returns the image associated with the specified camera position, or null if cp is null or if no match is found.
 float getTimeStamp(PlanarImage pi)
          Deprecated. Returns the time stamp associated with the specified image, or -Float.MAX_VALUE if pi is null or if no match is found.
 boolean remove(float ts)
          Deprecated. Removes the SequentialImage that contains the specified time stamp from this collection.
 boolean remove(Object cp)
          Deprecated. Removes the SequentialImage that contains the specified camera position from this collection.
 boolean remove(PlanarImage pi)
          Deprecated. Removes the SequentialImage 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

ImageSequence

protected ImageSequence()
Deprecated. 
The default constrctor.


ImageSequence

public ImageSequence(Collection images)
Deprecated. 
Constructs a class that represents a sequence of images.

Parameters:
images - A collection of SequentialImage.
Throws:
IllegalArgumentException - if images is null.
Method Detail

getImage

public PlanarImage getImage(float ts)
Deprecated. 
Returns the image associated with the specified time stamp, or null if no match is found.


getImage

public PlanarImage getImage(Object cp)
Deprecated. 
Returns the image associated with the specified camera position, or null if cp is null or if no match is found.


getTimeStamp

public float getTimeStamp(PlanarImage pi)
Deprecated. 
Returns the time stamp associated with the specified image, or -Float.MAX_VALUE if pi is null or if no match is found.


getCameraPosition

public Object getCameraPosition(PlanarImage pi)
Deprecated. 
Returns the camera position associated with the specified image, or null if pi is null or if no match is found.


add

public boolean add(Object o)
Deprecated. 
Adds a SequentialImage to this collection. If the specified image is null, it is not added to the collection.

Specified by:
add in interface Collection
Overrides:
add in class CollectionImage
Returns:
true if and only if the SequentialImage is added to the collection.

remove

public boolean remove(PlanarImage pi)
Deprecated. 
Removes the SequentialImage that contains the specified image from this collection.

Returns:
true if and only if a SequentialImage with the specified image is removed from the collection.

remove

public boolean remove(float ts)
Deprecated. 
Removes the SequentialImage that contains the specified time stamp from this collection.

Returns:
true if and only if a SequentialImage with the specified time stamp is removed from the collection.

remove

public boolean remove(Object cp)
Deprecated. 
Removes the SequentialImage that contains the specified camera position from this collection.

Specified by:
remove in interface Collection
Overrides:
remove in class CollectionImage
Returns:
true if and only if a SequentialImage with the specified camera position is removed from the collection.