eu.gnome.morena.wia
Class WIACamera

java.lang.Object
  extended by eu.gnome.morena.DeviceBase
      extended by eu.gnome.morena.wia.WIADevice
          extended by eu.gnome.morena.wia.WIACamera
All Implemented Interfaces:
Camera, Device, Version, WIAConstants, java.lang.Runnable

public class WIACamera
extends WIADevice
implements Camera, java.lang.Runnable


Field Summary
 
Fields inherited from interface eu.gnome.morena.Version
BUILD_DATE, BUILD_TIME, TMP_DIR, VERSION, VERSION_BUILD, VERSION_MAJOR, VERSION_MINOR
 
Fields inherited from interface eu.gnome.morena.wia.WIAConstants
WIA_CATEGORY_AUTO, WIA_CATEGORY_FEEDER, WIA_CATEGORY_FEEDER_BACK, WIA_CATEGORY_FEEDER_FRONT, WIA_CATEGORY_FILM, WIA_CATEGORY_FINISHED_FILE, WIA_CATEGORY_FLATBED, WIA_CATEGORY_FOLDER, WIA_CATEGORY_ROOT, WIA_ERROR_BUSY, WIA_ERROR_COVER_OPEN, WIA_ERROR_DESTINATION, WIA_ERROR_DEVICE_COMMUNICATION, WIA_ERROR_DEVICE_LOCKED, WIA_ERROR_EXCEPTION_IN_DRIVER, WIA_ERROR_GENERAL_ERROR, WIA_ERROR_INCORRECT_HARDWARE_SETTING, WIA_ERROR_INVALID_COMMAND, WIA_ERROR_INVALID_DRIVER_RESPONSE, WIA_ERROR_ITEM_DELETED, WIA_ERROR_LAMP_OFF, WIA_ERROR_NETWORK_RESERVATION_FAILED, WIA_ERROR_OFFLINE, WIA_ERROR_PAPER_EMPTY, WIA_ERROR_PAPER_JAM, WIA_ERROR_PAPER_PROBLEM, WIA_ERROR_USER_INTERVENTION, WIA_ERROR_WARMING_UP, WIA_FLAG_NOM, WIA_FLAG_NUM_ELEMS, WIA_FLAG_VALUES, WIA_HANDLING_CAPABILITY_DUP, WIA_HANDLING_CAPABILITY_FEED, WIA_HANDLING_CAPABILITY_FLAT, WIA_HANDLING_SELECT_AUTO_ADVANCE, WIA_HANDLING_SELECT_BACK_FIRST, WIA_HANDLING_SELECT_BACK_ONLY, WIA_HANDLING_SELECT_DUPLEX, WIA_HANDLING_SELECT_FEEDER, WIA_HANDLING_SELECT_FLATBED, WIA_HANDLING_SELECT_FRONT_FIRST, WIA_HANDLING_SELECT_FRONT_ONLY, WIA_HANDLING_SELECT_NEXT_PAGE, WIA_HANDLING_SELECT_PREFEED, WIA_IPA_DATATYPE, WIA_IPA_DEPTH, WIA_IPS_BRIGHTNESS, WIA_IPS_CONTRAST, WIA_IPS_PAGE_SIZE, WIA_IPS_XEXTENT, WIA_IPS_XPOS, WIA_IPS_XRES, WIA_IPS_YEXTENT, WIA_IPS_YPOS, WIA_IPS_YRES, WIA_LIST_COUNT, WIA_LIST_NOM, WIA_LIST_NUM_ELEMS, WIA_LIST_VALUES, WIA_PROP_CACHEABLE, WIA_PROP_FLAG, WIA_PROP_LIST, WIA_PROP_NONE, WIA_PROP_RANGE, WIA_PROP_READ, WIA_PROP_SYNC_REQUIRED, WIA_PROP_WRITE, WIA_RANGE_MAX, WIA_RANGE_MIN, WIA_RANGE_NOM, WIA_RANGE_NUM_ELEMS, WIA_RANGE_STEP, WIA_TRANSFER_MSG_DEVICE_STATUS, WIA_TRANSFER_MSG_END_OF_STREAM, WIA_TRANSFER_MSG_END_OF_TRANSFER, WIA_TRANSFER_MSG_NEW_PAGE, WIA_TRANSFER_MSG_STATUS, WIA1_IT_MSG_DATA, WIA1_IT_MSG_DATA_HEADER, WIA1_IT_MSG_FILE_PREVIEW_DATA, WIA1_IT_MSG_FILE_PREVIEW_DATA_HEADER, WIA1_IT_MSG_NEW_PAGE, WIA1_IT_MSG_STATUS, WIA1_IT_MSG_TERMINATION
 
Method Summary
 void run()
           
 void startTransfer(TransferDoneListener transferDoneListener)
          Scanning (scanner) or image transfer initiation (camera).
 
Methods inherited from class eu.gnome.morena.wia.WIADevice
displayProperties
 
Methods inherited from class eu.gnome.morena.DeviceBase
getFunctionalUnit, setFunctionalUnit, setupDevice, startTransfer, startTransfer, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface eu.gnome.morena.Device
setupDevice, startTransfer, toString
 

Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

startTransfer

public void startTransfer(TransferDoneListener transferDoneListener)
                   throws java.lang.Exception
Description copied from class: DeviceBase
Scanning (scanner) or image transfer initiation (camera). This method initiates an image transfer from this device. TransferDoneListener provided is a callback handler that handles a result of the transfer. Since the transfer process is asynchronous by nature it should be considered that this method call does not wait for the transfer is to be completed.

Specified by:
startTransfer in interface Device
Overrides:
startTransfer in class DeviceBase
Parameters:
transferDoneListener - - specifies the handler of the transferred image.
Throws:
java.lang.Exception