Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.lilacsoftware.orca
Class Playlist  view Playlist download Playlist.java

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended bycom.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


Nested Class Summary
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
(package private)  int onDeckCursor
           
private  int recentCursor
           
(package private)  boolean repeatMode
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Playlist()
           
 
Method Summary
 void add(int index, java.lang.Object element)
          Description of the Method
 void addToOnDeck(java.lang.Object element)
          Add a track into the on deck position
 boolean decrementOnDeckCursor()
          Description of the Method
 int getOnDeckCursor()
          Gets the onDeckCursor attribute of the Playlist object
 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.
 int getRecentCursor()
          Gets the recent attribute of the Playlist object
 void incrementOnDeckCursor()
          Description of the Method
 java.lang.Object moveOnDeckTrack()
          returns the on deck track and moves the on deck cursor to the next element
 java.lang.Object remove(int index)
          Description of the Method
 void setOnDeckCursor()
          Sets the onDeckCursor attribute of the Playlist object
 void setOnDeckCursor(int cursor)
          Sets the onDeckCursor attribute of the Playlist object
 void setRecentCursor(int recentCursor)
          Sets the recent attribute of the Playlist object
 
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
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.util.AbstractCollection
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

onDeckCursor

int onDeckCursor

repeatMode

boolean repeatMode

recentCursor

private int recentCursor
Constructor Detail

Playlist

public Playlist()
Method Detail

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: