|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eu.gnome.morena.DeviceBase
public class DeviceBase
A base class corresponding to the generic image acquisition device like
scanner or camera. Scanning (scanner) or image transfer (camera) is initiated
via startTransfer(TransferDoneListener)
method call.
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 | |
---|---|
int |
getFunctionalUnit()
|
void |
setFunctionalUnit(int unit)
|
boolean |
setupDevice(java.lang.Object parentComponent)
Setup device for image transfer initiation |
void |
startTransfer()
Scanning (scanner) or image transfer initiation (camera). |
void |
startTransfer(TransferDoneListener transferDoneListener)
Scanning (scanner) or image transfer initiation (camera). |
void |
startTransfer(TransferDoneListener transferDoneListener,
int functionalUnit)
Scanning from specified functional unit. |
java.lang.String |
toString()
Returns a string representation of this Device containing a description. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean setupDevice(java.lang.Object parentComponent)
setupDevice
in interface Device
parentComponent
- - Parent window component for displaying the dialogs.
public void startTransfer(TransferDoneListener transferDoneListener) throws java.lang.Exception
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.
startTransfer
in interface Device
transferDoneListener
- - specifies the handler of the transferred image.
java.lang.Exception
public void startTransfer() throws java.lang.Exception
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.
startTransfer
in interface Device
java.lang.Exception
public void startTransfer(TransferDoneListener transferDoneListener, int functionalUnit) throws java.lang.Exception
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.
transferDoneListener
- - specifies the handler of the transferred image.functionalUnit
- - specifies the functional unit (typically 0 is flatbed and 1 is
feeder).
java.lang.Exception
public int getFunctionalUnit()
public void setFunctionalUnit(int unit)
unit
- - functional unit to be selectedpublic java.lang.String toString()
toString
in interface Device
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |