|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.dillenburg.pictureframe.PictureFrame
public class PictureFrame
Displays pictures in a directory. Periodically copies files from a remote directory (NFS mounted for example)
to the local slide show directory. Also periodically downloads images from an e-mail account and displays these first. After e-mailed
pictures have been displayed for a given period of time (default is 1 hour), the display reverts to
pictures in the slide show directory. Pictures in the
e-mail download directory are scaled to the screen size and moved to the slideshow
directory after they become more than displayDownloadedPicturesInterval milliseconds old.
| Constructor Summary | |
|---|---|
PictureFrame(java.lang.String remoteDirectory,
Slideshow slideshow,
MailDownloader mailDownloader)
Start up picture frame with remoteDirectory, slideshowDirectory and mailDirectory. |
|
| Method Summary | |
|---|---|
long |
getDisplayDownloadedPicturesInterval()
|
long |
getMailCheckFrequency()
|
MailDownloader |
getMailDownloader()
|
java.lang.String |
getRemoteDirectory()
|
Slideshow |
getSlideshow()
|
long |
getSynchronizationFrequency()
|
static void |
main(java.lang.String[] args)
Parse command line arguments and start up picture frame. |
void |
setDisplayDownloadedPicturesInterval(long displayDownloadedPicturesInterval)
|
void |
setMailCheckFrequency(long mailCheckFrequency)
|
void |
setMailDownloader(MailDownloader mailDownloader)
|
void |
setRemoteDirectory(java.lang.String remoteDirectory)
|
void |
setSlideshow(Slideshow slideshow)
|
void |
setSynchronizationFrequency(long synchronizationFrequency)
|
void |
shutdown(SlideshowEvent ev)
The user hit ESC to shutdown slideshow |
void |
slideDisplayed(SlideshowEvent ev)
A slide was just displayed |
void |
start()
Start picture frame. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PictureFrame(java.lang.String remoteDirectory,
Slideshow slideshow,
MailDownloader mailDownloader)
slideshow directory every synchronizationFrequency milliseconds. Files in the
mailDownloader outputFolder will be rescaled and moved to the slideshow directory
remoteDirectory - directory to monitor for additional pictures, or null to disable remote monitoringslideshow - used to display picturesmailDownloader - used to download pictures from an e-mail account, or null to disable| Method Detail |
|---|
public void start()
public long getMailCheckFrequency()
public void setMailCheckFrequency(long mailCheckFrequency)
mailCheckFrequency - the mailCheckFrequency to setpublic long getSynchronizationFrequency()
public void setSynchronizationFrequency(long synchronizationFrequency)
synchronizationFrequency - the synchronizationFrequency to setpublic long getDisplayDownloadedPicturesInterval()
public void setDisplayDownloadedPicturesInterval(long displayDownloadedPicturesInterval)
displayDownloadedPicturesInterval - the displayDownloadedPicturesInterval to setpublic java.lang.String getRemoteDirectory()
public void setRemoteDirectory(java.lang.String remoteDirectory)
remoteDirectory - the remoteDirectory to setpublic Slideshow getSlideshow()
public void setSlideshow(Slideshow slideshow)
slideshow - the slideshow to setpublic MailDownloader getMailDownloader()
public void setMailDownloader(MailDownloader mailDownloader)
mailDownloader - the mailDownloader to setpublic void shutdown(SlideshowEvent ev)
SlideshowListener
shutdown in interface SlideshowListenerev - event informationpublic void slideDisplayed(SlideshowEvent ev)
SlideshowListener
slideDisplayed in interface SlideshowListenerev - event informationpublic static void main(java.lang.String[] args)
args - -cursor Show mouse cursor/pointer
-flat Stops scanning of all sub-directories for image
files (i.e., not recursive)
-help Print this message
-mailhost
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||