dialogs
Class FileIOProgress

java.lang.Object
  extended by dialogs.FileIOProgress

public class FileIOProgress
extends java.lang.Object

Instances of this class creates a new dialog showing the progress of an IO operation


Constructor Summary
FileIOProgress(org.eclipse.swt.widgets.Shell sShell)
          Creates a new instance of FileIOProgress dialog given it's parent Shell
 
Method Summary
 java.awt.image.BufferedImage openImage(java.lang.String file)
          Method that opens an image (jpeg or png)
 boolean saveImage(java.awt.image.BufferedImage image, java.lang.String file)
          Save a given image to png format in the given file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileIOProgress

public FileIOProgress(org.eclipse.swt.widgets.Shell sShell)
Creates a new instance of FileIOProgress dialog given it's parent Shell

Parameters:
sShell - the Shell to be used as modal
Method Detail

saveImage

public boolean saveImage(java.awt.image.BufferedImage image,
                         java.lang.String file)
Save a given image to png format in the given file

Parameters:
image - the image to save
file - the file used to save the image
Returns:
true if save was successful

openImage

public java.awt.image.BufferedImage openImage(java.lang.String file)
Method that opens an image (jpeg or png)

Parameters:
file - the file that is to be read
Returns:
an BufferedImage with the image just read