SK.gnome.morena
Class Morena

java.lang.Object
  extended by SK.gnome.morena.MorenaBase
      extended by SK.gnome.morena.Morena
All Implemented Interfaces:
MorenaConstants

public class Morena
extends MorenaBase

Morena entry point class.


Field Summary
 
Fields inherited from interface SK.gnome.morena.MorenaConstants
MORENA_MESSAGES, VERSION
 
Constructor Summary
Morena()
           
 
Method Summary
static void close()
          Method closes all opened connections to underlaying native code (e.g.
static MorenaSource selectSource(java.awt.Component parent)
          Method displays a sequence of dialog boxes asking for selecting between TWAIN and SANE API, for entering SANE daemon host name and for selecting one of installed devices.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Morena

public Morena()
Method Detail

selectSource

public static MorenaSource selectSource(java.awt.Component parent)
Method displays a sequence of dialog boxes asking for selecting between TWAIN and SANE API, for entering SANE daemon host name and for selecting one of installed devices. The return value is MorenaSource instance representing particular device.


close

public static void close()
                  throws MorenaException
Method closes all opened connections to underlaying native code (e.g. TWAIN, SANE).

Call this method whenever you need to use Morena code from another thread.

Throws:
MorenaException