Class AudioFileVector

java.lang.Object
  |
  +--AudioFileVector

public class AudioFileVector
extends Object

Vector of AudioFile objects that maintains the rank of the currently selected object.


Field Summary
protected  IVector elements
          Vector used to hold audio files.
protected  int selectedRank
          Currently selected rank.
 
Constructor Summary
AudioFileVector()
          Constructs an audio file vector.
 
Method Summary
 void add(AudioFile anAudioFile)
          Adds the given file to the end of this.
 void clear()
          Removes all files from this.
 AudioFile fileAtRank(int aRank)
          Returns the file at the given rank.
 AudioFile getSelectedFile()
          Returns the currently selected file.
 int getSelectedRank()
          Returns the currently selected rank in this.
 void insert(AudioFile anAudioFile)
          Inserts the given file into this at the currently selected rank.
 void remove()
          Removes the currently selected file from this.
 void selectNext()
          Selects the next rank in this.
 void selectPrevious()
          Selects the next rank in this.
 int size()
          Returns the size of this.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elements

protected IVector elements
Vector used to hold audio files.


selectedRank

protected int selectedRank
Currently selected rank.

Constructor Detail

AudioFileVector

public AudioFileVector()
Constructs an audio file vector.

Method Detail

add

public void add(AudioFile anAudioFile)
Adds the given file to the end of this.

Parameters:
anAudioFile - object to add

insert

public void insert(AudioFile anAudioFile)
Inserts the given file into this at the currently selected rank.


remove

public void remove()
Removes the currently selected file from this.


clear

public void clear()
Removes all files from this.


fileAtRank

public AudioFile fileAtRank(int aRank)
Returns the file at the given rank.

Parameters:
aRank - rank of desired file

size

public int size()
Returns the size of this.


getSelectedRank

public int getSelectedRank()
Returns the currently selected rank in this.


getSelectedFile

public AudioFile getSelectedFile()
Returns the currently selected file.


selectNext

public void selectNext()
Selects the next rank in this.


selectPrevious

public void selectPrevious()
Selects the next rank in this.