lhmc.plugins
Class CddaMPlayerPlugin

java.lang.Object
  extended by lhmc.plugins.Plugin
      extended by lhmc.plugins.CddaMPlayerPlugin
All Implemented Interfaces:
java.awt.event.FocusListener, java.awt.event.KeyListener, java.util.EventListener

public class CddaMPlayerPlugin
extends Plugin
implements java.awt.event.KeyListener, java.awt.event.FocusListener

CddaMPlayerPlugin plays an audio CD with MPlayer

Version:
0.01 Mar 2007
Author:
Cristina Roura Claver

Field Summary
protected  java.awt.GraphicsDevice device
           
protected  java.awt.Window mainWindow
           
 
Fields inherited from class lhmc.plugins.Plugin
backupFrame, mainFrame
 
Method Summary
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 java.lang.String[] generateCommand()
          Creates the command to be executed.
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void play(java.net.URL file)
          Shows the play panel and plays the first track of an audio Cd.
 void playAll(java.net.URL file)
          Executes a directory.
 
Methods inherited from class lhmc.plugins.Plugin
setMainFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

device

protected java.awt.GraphicsDevice device

mainWindow

protected java.awt.Window mainWindow
Method Detail

play

public void play(java.net.URL file)
Shows the play panel and plays the first track of an audio Cd.

Specified by:
play in class Plugin
Parameters:
file - not in use.

generateCommand

public java.lang.String[] generateCommand()
Creates the command to be executed.

Returns:
the command string.

playAll

public void playAll(java.net.URL file)
Description copied from class: Plugin
Executes a directory.

Specified by:
playAll in class Plugin
Parameters:
file - the url directory to execute.

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Specified by:
focusLost in interface java.awt.event.FocusListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in interface java.awt.event.KeyListener