|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.app.image.ImageDataSequence
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.
ImageSequencer
Constructor Summary | |
ImageDataSequence()
Creates an ImageDataSequence with no settings |
|
ImageDataSequence(ImageDescription desc)
Creates an ImageDataSequence with an initial description |
Method Summary | |
boolean |
addMember(java.lang.Object member)
Appends the member to the ImageDataSequence. |
void |
addToMovie(Movie theMovie,
float framesPerSecond)
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. |
void |
append(EncodedImage image)
Add the image description object to the end of the collection |
ImageDescription |
getDescription()
Returns the ImageDescription object that describes the image data in this sequence. |
EncodedImage |
getImage()
This method returns the actual image data of the first item in the ImageDataSequence. |
EncodedImage |
getImage(int index)
This method returns the actual image data at the specified index. |
EncodedImage |
getNth(int index)
Gets the image data object at given position. |
boolean |
hasMember(java.lang.Object object)
Returns true if the provided object is a member of the collection. |
void |
insert(EncodedImage image,
int index)
Add the image data object at the specified index. |
boolean |
isAppropriate(java.lang.Object object)
Returns true if the provided object is an appropriate candidate for membership in a collection. |
boolean |
isEmpty()
Returns true if the collection contains no members, or false if it has one or more members. |
java.util.Enumeration |
members()
Returns an object that will iterate over the elements in the collection. |
void |
prepend(EncodedImage image)
Add the image description object as the first item in the collection |
void |
remove(int i)
Remove the object at the specified index. |
void |
removeAll()
Remove all objects. |
void |
removeFirst()
Remove the object at the specified index. |
void |
removeLast()
Remove the object at the specified index. |
void |
removeMember(java.lang.Object member)
If the object is a member of the collection it is removed. |
ImageSequencer |
sequence()
Return a Sequencer to iterate over the members of this sequence. |
void |
setDescription(ImageDescription desc)
Sets the ImageDescription object that will describe how the image data objects are to be interpreted by QT. |
int |
size()
Determines the number of items. |
java.lang.String |
toString()
Return a string representation of this class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ImageDataSequence()
public ImageDataSequence(ImageDescription desc)
desc
- the description that will describe the subsequently added image dataMethod Detail |
public ImageDescription getDescription()
getDescription
in interface ImageSpec
public void setDescription(ImageDescription desc)
desc
- the new descriptionpublic EncodedImage getImage()
getImage
in interface ImageSpec
public EncodedImage getImage(int index)
index
- is the index to the data framepublic java.util.Enumeration members()
members
in interface Collection
public ImageSequencer sequence()
public boolean addMember(java.lang.Object member)
addMember
in interface Collection
member
- the object that should be added as a member to the collectionpublic void removeMember(java.lang.Object member)
removeMember
in interface Collection
member
- the object to remove from the collectionpublic boolean isAppropriate(java.lang.Object object)
The member of an ImageDataSequence is an EncodedImage object.
isAppropriate
in interface Collection
object
- the object to testDynamicCollection
,
Protocol
public boolean hasMember(java.lang.Object object)
hasMember
in interface Collection
member
- the object to test for membershippublic void insert(EncodedImage image, int index)
image
- The image data.index
- The position in the sequence to add.java.lang.ArrayIndexOutOfBoundsException
- if index value is beyond the size of the collection.public void prepend(EncodedImage image)
image
- The image data to add.public void append(EncodedImage image)
image
- The image data to add.public void remove(int i)
i
- The position in the sequence to delete.java.lang.ArrayIndexOutOfBoundsException
- if index value is beyond the size of the collection.public void removeFirst()
java.lang.ArrayIndexOutOfBoundsException
- if index value is beyond the size of the collection.public void removeLast()
java.lang.ArrayIndexOutOfBoundsException
- if index value is beyond the size of the collection.public void removeAll()
public int size()
size
in interface Collection
public EncodedImage getNth(int index)
index
- Specifies the position in sequence.java.lang.ArrayIndexOutOfBoundsException
- if index value is beyond the size of the collection.public boolean isEmpty()
isEmpty
in interface Collection
public void addToMovie(Movie theMovie, float framesPerSecond) throws QTException
theMovie
- the movie to add the video track toframesPerSecond
- how many frames per second the image data should be inserted atpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |