quicktime.app.image
Class ImageDataSequence

java.lang.Object
  |
  +--quicktime.app.image.ImageDataSequence
All Implemented Interfaces:
Collection, ImageSpec

Deprecated. since QTJava 6.1

public class ImageDataSequence
extends java.lang.Object
implements ImageSpec, Collection

A Container class for a collection of objects that have a single image description and a sequence of picture data. The actual members of the ImageDataSequence are EncodedImage objects. This collection is a 1 based collection and is ordered. Typically to iterate over the members the ImageSequencer class is used.

See Also:
ImageSequencer

Constructor Summary
ImageDataSequence()
          Deprecated. since QTJava 6.1
ImageDataSequence(ImageDescription desc)
          Deprecated. since QTJava 6.1
 
Method Summary
 boolean addMember(java.lang.Object member)
          Deprecated. since QTJava 6.1
 void addToMovie(Movie theMovie, float framesPerSecond)
          Deprecated. since QTJava 6.1
 void append(EncodedImage image)
          Deprecated. since QTJava 6.1
 ImageDescription getDescription()
          Deprecated. since QTJava 6.1
 EncodedImage getImage()
          Deprecated. since QTJava 6.1
 EncodedImage getImage(int index)
          Deprecated. since QTJava 6.1
 EncodedImage getNth(int index)
          Deprecated. since QTJava 6.1
 boolean hasMember(java.lang.Object object)
          Deprecated. since QTJava 6.1
 void insert(EncodedImage image, int index)
          Deprecated. since QTJava 6.1
 boolean isAppropriate(java.lang.Object object)
          Deprecated. since QTJava 6.1
 boolean isEmpty()
          Deprecated. since QTJava 6.1
 java.util.Enumeration members()
          Deprecated. since QTJava 6.1
 void prepend(EncodedImage image)
          Deprecated. since QTJava 6.1
 void remove(int i)
          Deprecated. since QTJava 6.1
 void removeAll()
          Deprecated. since QTJava 6.1
 void removeFirst()
          Deprecated. since QTJava 6.1
 void removeLast()
          Deprecated. since QTJava 6.1
 void removeMember(java.lang.Object member)
          Deprecated. since QTJava 6.1
 ImageSequencer sequence()
          Deprecated. since QTJava 6.1
 void setDescription(ImageDescription desc)
          Deprecated. since QTJava 6.1
 int size()
          Deprecated. since QTJava 6.1
 java.lang.String toString()
          Deprecated. Return a string representation of this class* @deprecated since QTJava 6.1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageDataSequence

public ImageDataSequence()
Deprecated. since QTJava 6.1

Creates an ImageDataSequence with no settings


ImageDataSequence

public ImageDataSequence(ImageDescription desc)
Deprecated. since QTJava 6.1

Creates an ImageDataSequence with an initial description

Parameters:
desc - the description that will describe the subsequently added image data
Method Detail

getDescription

public ImageDescription getDescription()
Deprecated. since QTJava 6.1

Returns the ImageDescription object that describes the image data in this sequence.

Specified by:
getDescription in interface ImageSpec
Returns:
the description

setDescription

public void setDescription(ImageDescription desc)
Deprecated. since QTJava 6.1

Sets the ImageDescription object that will describe how the image data objects are to be interpreted by QT.

Parameters:
desc - the new description

getImage

public EncodedImage getImage()
Deprecated. since QTJava 6.1

This method returns the actual image data of the first item in the ImageDataSequence.

Specified by:
getImage in interface ImageSpec
Returns:
the image data

getImage

public EncodedImage getImage(int index)
Deprecated. since QTJava 6.1

This method returns the actual image data at the specified index. The index is a one based index. An Exception is throw if there was some problem retrieving the data.

Parameters:
index - is the index to the data frame
Returns:
the image data

members

public java.util.Enumeration members()
Deprecated. since QTJava 6.1

Returns an object that will iterate over the elements in the collection.

Specified by:
members in interface Collection
Returns:
The iterator.

sequence

public ImageSequencer sequence()
Deprecated. since QTJava 6.1

Return a Sequencer to iterate over the members of this sequence.

Returns:
a Sequencer

addMember

public boolean addMember(java.lang.Object member)
Deprecated. since QTJava 6.1

Appends the member to the ImageDataSequence. Adds an object to the collection. Returns true if the object is appropriate member of the collection (and thus added) and false if not.

Specified by:
addMember in interface Collection
Parameters:
member - the object that should be added as a member to the collection
Returns:
a boolean.

removeMember

public void removeMember(java.lang.Object member)
Deprecated. since QTJava 6.1

If the object is a member of the collection it is removed.

Specified by:
removeMember in interface Collection
Parameters:
member - the object to remove from the collection

isAppropriate

public boolean isAppropriate(java.lang.Object object)
Deprecated. since QTJava 6.1

Returns true if the provided object is an appropriate candidate for membership in a collection. The provided QTJava collections use this method to ensure a minimal requirement of Class or Interface instanceof tests to ensure the type of object that can be added to a collection. Some collections can have a protocol that allows an application to further refine and tighten the type of object that is allowed within an individual collection.

The member of an ImageDataSequence is an EncodedImage object.

Specified by:
isAppropriate in interface Collection
Parameters:
object - the object to test
Returns:
true if the supplied object is appropriate for this collection, or false if not
See Also:
DynamicCollection, Protocol

hasMember

public boolean hasMember(java.lang.Object object)
Deprecated. since QTJava 6.1

Returns true if the provided object is a member of the collection.

Specified by:
hasMember in interface Collection
Parameters:
object - the object to test for membership
Returns:
a boolean

insert

public void insert(EncodedImage image,
                   int index)
Deprecated. since QTJava 6.1

Add the image data object at the specified index. If the index is beyond the end of the collection the image data is appended to the collection.

Parameters:
image - The image data.
index - The position in the sequence to add.
Throws:
java.lang.ArrayIndexOutOfBoundsException - if index value is beyond the size of the collection.

prepend

public void prepend(EncodedImage image)
Deprecated. since QTJava 6.1

Add the image description object as the first item in the collection

Parameters:
image - The image data to add.

append

public void append(EncodedImage image)
Deprecated. since QTJava 6.1

Add the image description object to the end of the collection

Parameters:
image - The image data to add.

remove

public void remove(int i)
Deprecated. since QTJava 6.1

Remove the object at the specified index.

Parameters:
i - The position in the sequence to delete.
Throws:
java.lang.ArrayIndexOutOfBoundsException - if index value is beyond the size of the collection.

removeFirst

public void removeFirst()
Deprecated. since QTJava 6.1

Remove the object at the specified index.

Throws:
java.lang.ArrayIndexOutOfBoundsException - if index value is beyond the size of the collection.

removeLast

public void removeLast()
Deprecated. since QTJava 6.1

Remove the object at the specified index.

Throws:
java.lang.ArrayIndexOutOfBoundsException - if index value is beyond the size of the collection.

removeAll

public void removeAll()
Deprecated. since QTJava 6.1

Remove all objects.


size

public int size()
Deprecated. since QTJava 6.1

Determines the number of items.

Specified by:
size in interface Collection
Returns:
The size.

getNth

public EncodedImage getNth(int index)
Deprecated. since QTJava 6.1

Gets the image data object at given position.

Parameters:
index - Specifies the position in sequence.
Returns:
the image data.
Throws:
java.lang.ArrayIndexOutOfBoundsException - if index value is beyond the size of the collection.

isEmpty

public boolean isEmpty()
Deprecated. since QTJava 6.1

Returns true if the collection contains no members, or false if it has one or more members.

Specified by:
isEmpty in interface Collection
Returns:
a boolean

addToMovie

public void addToMovie(Movie theMovie,
                       float framesPerSecond)
                throws QTException
Deprecated. since QTJava 6.1

This will insert a video track into the supplied movie with all of the image data that is contained in this data sequence at the specified frames per second.

Parameters:
theMovie - the movie to add the video track to
framesPerSecond - how many frames per second the image data should be inserted at
QTException

toString

public java.lang.String toString()
Deprecated. 
Return a string representation of this class* @deprecated since QTJava 6.1

Overrides:
toString in class java.lang.Object