|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecteu.gnome.morena.DeviceBase
eu.gnome.morena.ica.ICADevice
eu.gnome.morena.ica.ICAScanner
public class ICAScanner
| Field Summary |
|---|
| Fields inherited from interface eu.gnome.morena.Scanner |
|---|
BLACK_AND_WHITE, DUPLEX_AVAIL, DUPLEX_AVAIL_BACK_ONLY, DUPLEX_AVAIL_FRONT_ONLY, DUPLEX_NOT_AVAIL, GRAY_16, GRAY_8, RGB_16, RGB_8 |
| Fields inherited from interface eu.gnome.morena.Version |
|---|
BUILD_DATE, BUILD_TIME, TMP_DIR, VERSION, VERSION_BUILD, VERSION_MAJOR, VERSION_MINOR |
| Method Summary | |
|---|---|
void |
cancelTransfer()
Stop scanning in progress. |
int |
getFeederFunctionalUnit()
Get feeder functional unit. |
int |
getFlatbedFunctionalUnit()
Get flatbed functional unit. |
int |
getMode()
Gets a current color mode |
int |
getResolution()
Gets current scanning resolution. |
java.util.List<java.lang.Integer> |
getSupportedModes()
Gets supported color modes |
java.util.List<java.lang.Integer> |
getSupportedResolutions()
Gets supported scanning resolutions. |
boolean |
isDuplexEnabled()
|
boolean |
isDuplexSupported()
|
void |
setDuplexEnabled(boolean enabled)
|
void |
setFrame(int x,
int y,
int width,
int height)
Sets area of scanning in pixels. |
void |
setMode(int bitDepth)
Sets a color mode |
void |
setResolution(int resolution)
Sets scanning resolution. |
void |
startTransfer(TransferDoneListener transferDoneListener,
int functionalUnit)
Scanning from specified functional unit. |
| 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.Scanner |
|---|
getFunctionalUnit, setFunctionalUnit |
| Methods inherited from interface eu.gnome.morena.Device |
|---|
setupDevice, startTransfer, startTransfer, toString |
| Method Detail |
|---|
public void startTransfer(TransferDoneListener transferDoneListener,
int functionalUnit)
throws java.lang.Exception
DeviceBaseTransferDoneListener 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 ScannerstartTransfer in class DeviceBasetransferDoneListener - - specifies the handler of the transferred image.functionalUnit - - specifies the functional unit (typically 0 is flatbed and 1 is
feeder).
java.lang.Exceptionpublic void setMode(int bitDepth)
Scanner
setMode in interface ScannerbitDepth - - color modeScanner.RGB_8,
Scanner.RGB_16,
Scanner.GRAY_8,
Scanner.GRAY_16,
Scanner.BLACK_AND_WHITEpublic int getMode()
Scanner
getMode in interface ScannerScanner.RGB_8,
Scanner.RGB_16,
Scanner.GRAY_8,
Scanner.GRAY_16,
Scanner.BLACK_AND_WHITEpublic java.util.List<java.lang.Integer> getSupportedModes()
Scanner
getSupportedModes in interface ScannerScanner.RGB_8,
Scanner.RGB_16,
Scanner.GRAY_8,
Scanner.GRAY_16,
Scanner.BLACK_AND_WHITEpublic void setResolution(int resolution)
Scanner
setResolution in interface Scannerresolution - - DPIpublic int getResolution()
Scanner
getResolution in interface Scannerpublic java.util.List<java.lang.Integer> getSupportedResolutions()
Scanner
getSupportedResolutions in interface Scanner
public void setFrame(int x,
int y,
int width,
int height)
Scanner
setFrame in interface Scannerpublic void cancelTransfer()
Scanner
cancelTransfer in interface Scannerpublic int getFlatbedFunctionalUnit()
Scanner
getFlatbedFunctionalUnit in interface Scannerpublic int getFeederFunctionalUnit()
Scanner
getFeederFunctionalUnit in interface Scannerpublic boolean isDuplexSupported()
isDuplexSupported in interface Scannerpublic boolean isDuplexEnabled()
isDuplexEnabled in interface Scannerpublic void setDuplexEnabled(boolean enabled)
setDuplexEnabled in interface Scanner
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||