dialogs
Class FitImage

java.lang.Object
  extended by dialogs.FitImage

public class FitImage
extends java.lang.Object

Instances of this class creates a new dialog with the necessary tools for the user to fit a given image a specified face mask


Constructor Summary
FitImage(org.eclipse.swt.widgets.Shell parent, java.awt.image.BufferedImage originalImage)
          Creates a new instance of this class given its parent and the desired image to be adjusted
 
Method Summary
 java.lang.Object[] open()
          Makes the dialog visible and brings it to the front of the display.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FitImage

public FitImage(org.eclipse.swt.widgets.Shell parent,
                java.awt.image.BufferedImage originalImage)
Creates a new instance of this class given its parent and the desired image to be adjusted

Method Detail

open

public java.lang.Object[] open()
Makes the dialog visible and brings it to the front of the display.

Returns:
an array of a Rectangle with the image area, a Dimension with image size and a double specifying the image rotation angle or nullif the dialog was canceled or an error occurred
Throws:
org.eclipse.swt.SWTException -
  • ERROR_WIDGET_DISPOSED - if the dialog has been disposed
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the dialog