eu.gnome.morena
Class Manager

java.lang.Object
  extended by eu.gnome.morena.Manager
All Implemented Interfaces:
Version
Direct Known Subclasses:
ICAManager, WIAManager

public abstract class Manager
extends java.lang.Object
implements Version

A Class representing an interface to the image acquisition device manager.

Actual interface is selected according host operating system and appropriate native library is loaded during the startup.

  • WIAManager for MS Windows system family
  • ICAManager for Mac OS X system family

    List of actually connected devices can be obtained by calling listDevices()

    selectDevice(Component) method is available for selection a device from the list using the GUI dialog


    Field Summary
     
    Fields inherited from interface eu.gnome.morena.Version
    BUILD_DATE, BUILD_TIME, TMP_DIR, VERSION, VERSION_BUILD, VERSION_MAJOR, VERSION_MINOR
     
    Method Summary
     void addDeviceListChangeListener(DeviceListChangeListener listener)
              Adds a device list change listener
     boolean available()
              Checks whether appropriate interface manager is available
     void close()
               
    static void debug(java.lang.String msg)
               
    static void error(java.lang.String msg)
               
    static void error(java.lang.String msg, java.lang.Throwable t)
               
    static Manager getInstance()
               
    static void info(java.lang.String msg)
               
    abstract  java.util.List<Device> listDevices()
              Returns a list of available (actually connected) image acquisition devices.
     void removeDeviceListChangeListener(DeviceListChangeListener listener)
              Removes a device list change listener
     Device selectDevice(java.awt.Component parent)
              Returns selected device or null if no device is connected or the selection dialog has been canceled.
    static void trace(java.lang.String msg)
               
    static void warning(java.lang.String msg)
               
     
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Method Detail

    getInstance

    public static Manager getInstance()

    info

    public static void info(java.lang.String msg)

    warning

    public static void warning(java.lang.String msg)

    error

    public static void error(java.lang.String msg)

    error

    public static void error(java.lang.String msg,
                             java.lang.Throwable t)

    debug

    public static void debug(java.lang.String msg)

    trace

    public static void trace(java.lang.String msg)

    selectDevice

    public Device selectDevice(java.awt.Component parent)
    Returns selected device or null if no device is connected or the selection dialog has been canceled.

    Parameters:
    parent - - Parent window component for displaying the dialog.
    Returns:
    Selected device.

    listDevices

    public abstract java.util.List<Device> listDevices()
    Returns a list of available (actually connected) image acquisition devices.

    Returns:
    The list of available device.

    close

    public void close()

    addDeviceListChangeListener

    public void addDeviceListChangeListener(DeviceListChangeListener listener)
    Adds a device list change listener

    Parameters:
    listener -

    removeDeviceListChangeListener

    public void removeDeviceListChangeListener(DeviceListChangeListener listener)
    Removes a device list change listener

    Parameters:
    listener -

    available

    public boolean available()
    Checks whether appropriate interface manager is available