|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dillenburg.pictureframe.Slideshow
public class Slideshow
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 |
---|
public Slideshow(java.lang.String dir)
dir
- directory to be scanned for imagesMethod Detail |
---|
public void start()
public void addListener(SlideshowListener listener)
listener
- to addpublic void removeListener(SlideshowListener listener)
listener
- to removepublic static void main(java.lang.String[] args)
args
- public java.lang.String getDirectory()
public void setDirectory(java.lang.String directory)
directory
- directory to scan recursively for .JPG imagespublic long getDelay()
public void setDelay(long delay)
delay
- in milliseconds between picturespublic boolean isRandomize()
public void setRandomize(boolean randomize)
randomize
- set to true to display images in random orderingpublic boolean isRecursive()
public void setRecursive(boolean recursive)
recursive
- set to true to scan directories recursivelypublic boolean isHideCursor()
public void setHideCursor(boolean hideCursor)
hideCursor
- set to true to hide cursor during slide showpublic long getRescanFrequency()
public void setRescanFrequency(long rescanFrequency)
rescanFrequency
- how often to check directory for changes in milliseconds
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |