dialogs
Class BeforeAndAfter

java.lang.Object
  extended by dialogs.BeforeAndAfter

public class BeforeAndAfter
extends java.lang.Object

Instances of this class show the difference between two given images in a new window.


Constructor Summary
BeforeAndAfter(org.eclipse.swt.widgets.Shell parent, org.eclipse.swt.graphics.ImageData beforeImageData, org.eclipse.swt.graphics.ImageData afterImageData)
          Creates a new instance of this class given it's parent Shell window and the two image data used to create this dialog's images
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeforeAndAfter

public BeforeAndAfter(org.eclipse.swt.widgets.Shell parent,
                      org.eclipse.swt.graphics.ImageData beforeImageData,
                      org.eclipse.swt.graphics.ImageData afterImageData)
Creates a new instance of this class given it's parent Shell window and the two image data used to create this dialog's images

Parameters:
parent - the dialog's parent
beforeImageData - the image to be shown in the "before" composite
afterImageData - the image to be shown in the "after" composite
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