java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.Vector
com.lilacsoftware.orca.Playlist
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, java.lang.Iterable, java.util.List, java.util.RandomAccess, java.io.Serializable
- public class Playlist
- extends java.util.Vector
Description of the Class
| Methods inherited from class java.util.Vector |
add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
onDeckCursor
int onDeckCursor
repeatMode
boolean repeatMode
recentCursor
private int recentCursor
Playlist
public Playlist()
setRecentCursor
public void setRecentCursor(int recentCursor)
- Sets the recent attribute of the Playlist object
- Since:
setOnDeckCursor
public void setOnDeckCursor()
- Sets the onDeckCursor attribute of the Playlist object
- Since:
setOnDeckCursor
public void setOnDeckCursor(int cursor)
- Sets the onDeckCursor attribute of the Playlist object
- Since:
getRecentCursor
public int getRecentCursor()
- Gets the recent attribute of the Playlist object
- Since:
getOnDeckTrack
public java.lang.Object getOnDeckTrack()
- getOnDeckTrack retrieves the on deck object from the playlist, and moves
the on deck cursor to the next track in the playlist. It returns null if
at the end of the playlist and repeat mode is disabled. If the repeat
mode is enabled, and cursor is at the end of the playlist, then the
cursor is moved to the beginning of the playlist.
- Since:
getOnDeckCursor
public int getOnDeckCursor()
- Gets the onDeckCursor attribute of the Playlist object
- Since:
add
public void add(int index,
java.lang.Object element)
- Description of the Method
- Since:
remove
public java.lang.Object remove(int index)
- Description of the Method
- Since:
addToOnDeck
public void addToOnDeck(java.lang.Object element)
- Add a track into the on deck position
- Since:
moveOnDeckTrack
public java.lang.Object moveOnDeckTrack()
- returns the on deck track and moves the on deck cursor to the next
element
- Since:
incrementOnDeckCursor
public void incrementOnDeckCursor()
- Description of the Method
- Since:
decrementOnDeckCursor
public boolean decrementOnDeckCursor()
- Description of the Method
- Since: