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

Quick Search    Search Deep

irate.client
Class PlayThread  view PlayThread download PlayThread.java

java.lang.Object
  extended byjava.lang.Thread
      extended byirate.client.PlayThread
All Implemented Interfaces:
java.lang.Runnable

public class PlayThread
extends java.lang.Thread


Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  irate.common.Track currentTrack
           
private  irate.common.Track nextTrack
           
private  Player player
           
private  PlayerList playerList
           
private  PlayListManager playListManager
           
private  boolean speaking
           
private  Speech speech
           
private  boolean toKeepPlaying
           
private  java.util.Vector updateListeners
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PlayThread(PlayListManager playListManager, PlayerList playerList)
           
 
Method Summary
 void addUpdateListener(irate.common.UpdateListener updateListener)
           
 irate.common.Track getCurrentTrack()
           
 boolean isPaused()
           
 boolean isSpeechSupported()
           
private  void notifyUpdateListeners()
           
 void play(irate.common.Track track)
           
private  void playFile(java.io.File file)
           
private  void playTrack()
           
 void reject()
           
 void run()
          The method of Thread that will be run if there is no Runnable object associated with the Thread.
 void setPaused(boolean paused)
           
 void setRating(int rating)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

currentTrack

private irate.common.Track currentTrack

nextTrack

private irate.common.Track nextTrack

player

private Player player

playerList

private PlayerList playerList

playListManager

private PlayListManager playListManager

updateListeners

private java.util.Vector updateListeners

speech

private Speech speech

speaking

private boolean speaking

toKeepPlaying

private boolean toKeepPlaying
Constructor Detail

PlayThread

public PlayThread(PlayListManager playListManager,
                  PlayerList playerList)
Method Detail

isSpeechSupported

public boolean isSpeechSupported()

run

public void run()
Description copied from class: java.lang.Thread
The method of Thread that will be run if there is no Runnable object associated with the Thread. Thread's implementation does nothing at all.


playFile

private void playFile(java.io.File file)
               throws java.lang.Exception

play

public void play(irate.common.Track track)

playTrack

private void playTrack()

getCurrentTrack

public irate.common.Track getCurrentTrack()

reject

public void reject()

setRating

public void setRating(int rating)

setPaused

public void setPaused(boolean paused)

isPaused

public boolean isPaused()

addUpdateListener

public void addUpdateListener(irate.common.UpdateListener updateListener)

notifyUpdateListeners

private void notifyUpdateListeners()