org.dillenburg.pictureframe
Class Slideshow

java.lang.Object
  extended by org.dillenburg.pictureframe.Slideshow

public class Slideshow
extends java.lang.Object

Displays a slideshow giving a directory of files to display. Scales the images to fit the screen and then centers them with a BLACK background.


Constructor Summary
Slideshow(java.lang.String dir)
          Create a slide show of the pictures in the given directory.
 
Method Summary
 void addListener(SlideshowListener listener)
          Add a listener to my events
 long getDelay()
           
 java.lang.String getDirectory()
           
 long getRescanFrequency()
           
 boolean isHideCursor()
           
 boolean isRandomize()
           
 boolean isRecursive()
           
static void main(java.lang.String[] args)
          Start up the slide show.
 void removeListener(SlideshowListener listener)
          Remove a listener
 void setDelay(long delay)
           
 void setDirectory(java.lang.String directory)
          Set the directory to scan for .jpg or .JPG images.
 void setHideCursor(boolean hideCursor)
           
 void setRandomize(boolean randomize)
           
 void setRecursive(boolean recursive)
           
 void setRescanFrequency(long rescanFrequency)
           
 void start()
          Start the slideshow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Slideshow

public Slideshow(java.lang.String dir)
Create a slide show of the pictures in the given directory.

Parameters:
dir - directory to be scanned for images
Method Detail

start

public void start()
Start the slideshow


addListener

public void addListener(SlideshowListener listener)
Add a listener to my events

Parameters:
listener - to add

removeListener

public void removeListener(SlideshowListener listener)
Remove a listener

Parameters:
listener - to remove

main

public static void main(java.lang.String[] args)
Start up the slide show.

Parameters:
args -

getDirectory

public java.lang.String getDirectory()
Returns:
directory to scan for .JPG images

setDirectory

public void setDirectory(java.lang.String directory)
Set the directory to scan for .jpg or .JPG images.

Parameters:
directory - directory to scan recursively for .JPG images

getDelay

public long getDelay()
Returns:
delay between pictures in milliseconds

setDelay

public void setDelay(long delay)
Parameters:
delay - in milliseconds between pictures

isRandomize

public boolean isRandomize()
Returns:
true if images are displayed in random order

setRandomize

public void setRandomize(boolean randomize)
Parameters:
randomize - set to true to display images in random ordering

isRecursive

public boolean isRecursive()
Returns:
true if sub-directories are scanned recursively

setRecursive

public void setRecursive(boolean recursive)
Parameters:
recursive - set to true to scan directories recursively

isHideCursor

public boolean isHideCursor()
Returns:
true if the cursor is hidden

setHideCursor

public void setHideCursor(boolean hideCursor)
Parameters:
hideCursor - set to true to hide cursor during slide show

getRescanFrequency

public long getRescanFrequency()
Returns:
how often to check directory for changes in milliseconds

setRescanFrequency

public void setRescanFrequency(long rescanFrequency)
Parameters:
rescanFrequency - how often to check directory for changes in milliseconds


JPictureFrame hosted by SourceForge.net - John Dillenburg - john_sourceforge@dillenburg.org