Ontimize 5.2072EN

com.ontimize.util.twain
Class TwainManager

java.lang.Object
  extended bycom.ontimize.util.twain.TwainManager

public abstract class TwainManager
extends java.lang.Object


Nested Class Summary
protected static class TwainManager.JImageDisplay
           
protected static class TwainManager.PreviewDialog
           
 
Field Summary
static int DEFAULT_PREVIEW_RES
           
protected static TwainManager.PreviewDialog previewDialog
           
 
Constructor Summary
TwainManager()
           
 
Method Summary
static java.awt.Image acquire()
           
static java.awt.Image acquire(int resX, int resY, java.awt.geom.Rectangle2D.Double rExt)
           
static java.awt.Image acquire(int resX, int resY, java.awt.geom.Rectangle2D.Double rExt, boolean showSourceGUI)
           
static void center(java.awt.Window f)
           
protected static TwainManager.PreviewDialog createPreviewDialog(java.awt.Component c)
           
static int getTwainSourceCount()
           
static java.awt.Image preview()
           
static java.awt.Image preview(boolean showSourceGUI)
           
static java.lang.Object selectTwainSource()
           
static java.awt.Image showPreviewDialog(java.awt.Component c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PREVIEW_RES

public static final int DEFAULT_PREVIEW_RES
See Also:
Constant Field Values

previewDialog

protected static TwainManager.PreviewDialog previewDialog
Constructor Detail

TwainManager

public TwainManager()
Method Detail

getTwainSourceCount

public static int getTwainSourceCount()
                               throws java.lang.Exception
Throws:
java.lang.Exception

selectTwainSource

public static java.lang.Object selectTwainSource()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

preview

public static java.awt.Image preview()
                              throws java.lang.Exception
Throws:
java.lang.Exception

preview

public static java.awt.Image preview(boolean showSourceGUI)
                              throws java.lang.Exception
Throws:
java.lang.Exception

showPreviewDialog

public static java.awt.Image showPreviewDialog(java.awt.Component c)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

acquire

public static java.awt.Image acquire()
                              throws java.lang.Exception
Throws:
java.lang.Exception

acquire

public static java.awt.Image acquire(int resX,
                                     int resY,
                                     java.awt.geom.Rectangle2D.Double rExt)
                              throws java.lang.Exception
Throws:
java.lang.Exception

acquire

public static java.awt.Image acquire(int resX,
                                     int resY,
                                     java.awt.geom.Rectangle2D.Double rExt,
                                     boolean showSourceGUI)
                              throws java.lang.Exception
Parameters:
resX -
resY -
rExt - in millimeters
Returns:
Throws:
java.lang.Exception

createPreviewDialog

protected static TwainManager.PreviewDialog createPreviewDialog(java.awt.Component c)

center

public static void center(java.awt.Window f)

Ontimize