dialogs
Class PhotoBrowser

java.lang.Object
  extended by dialogs.PhotoBrowser

public class PhotoBrowser
extends java.lang.Object

Instances of this class show a browsing window for images found at a given path


Constructor Summary
PhotoBrowser(org.eclipse.swt.widgets.Shell parent, java.lang.String imagesPath)
          Creates a new instance of this class given it's parent Shell window
 
Method Summary
 java.awt.image.BufferedImage CreateImageFromFile(java.io.File file)
          Create a BufferedImage from a given file using subsampling for faster reading
 java.lang.String open()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhotoBrowser

public PhotoBrowser(org.eclipse.swt.widgets.Shell parent,
                    java.lang.String imagesPath)
Creates a new instance of this class given it's parent Shell window

Parameters:
parent - the dialog's parent
Throws:
java.lang.IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the parent is null
org.eclipse.swt.SWTException -
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent
  • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
Method Detail

open

public java.lang.String open()

CreateImageFromFile

public java.awt.image.BufferedImage CreateImageFromFile(java.io.File file)
Create a BufferedImage from a given file using subsampling for faster reading

Parameters:
file - the file to read
Returns:
the subsampled BufferedImage