lhmc.plugins
Class ImagePlugin

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

public class ImagePlugin
extends Plugin
implements java.awt.event.KeyListener

ImagePlugin executes a single image file and shows it in fullscreen and executes a directory and make a slideshow from all the images in that directory.

Version:
0.01 Mar 2007
Author:
Cristina Roura Claver

Field Summary
protected  java.awt.GraphicsDevice device
           
protected  java.awt.Window mainWindow
           
protected  SlideShow ss
           
 
Fields inherited from class lhmc.plugins.Plugin
backupFrame, mainFrame
 
Method Summary
 void keyPressed(java.awt.event.KeyEvent e)
          Handles the keyPressed event by invoking the keyPressed methods on listener-a and listener-b.
 void keyReleased(java.awt.event.KeyEvent e)
          Handles the keyReleased event by invoking the keyReleased methods on listener-a and listener-b.
 void keyTyped(java.awt.event.KeyEvent e)
          Handles the keyTyped event by invoking the keyTyped methods on listener-a and listener-b.
 void play(java.net.URL file)
          Shows the scaled image in fullscreen.
 void playAll(java.net.URL file)
          Shows a slideshow of a directory in fullscreen.
 
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

ss

protected SlideShow ss
Method Detail

play

public void play(java.net.URL file)
Shows the scaled image in fullscreen.

Specified by:
play in class Plugin
Parameters:
file - the image URL to show.

playAll

public void playAll(java.net.URL file)
Shows a slideshow of a directory in fullscreen.

Specified by:
playAll in class Plugin
Parameters:
file - the URL directory to make the slideshow.

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Handles the keyPressed event by invoking the keyPressed methods on listener-a and listener-b.

Specified by:
keyPressed in interface java.awt.event.KeyListener
Parameters:
e - the key event.

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Handles the keyReleased event by invoking the keyReleased methods on listener-a and listener-b.

Specified by:
keyReleased in interface java.awt.event.KeyListener
Parameters:
e - the key event.

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Handles the keyTyped event by invoking the keyTyped methods on listener-a and listener-b.

Specified by:
keyTyped in interface java.awt.event.KeyListener
Parameters:
e - the key event.