|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eu.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
DeviceBase
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 Scanner
startTransfer
in class DeviceBase
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 void setMode(int bitDepth)
Scanner
setMode
in interface Scanner
bitDepth
- - color modeScanner.RGB_8
,
Scanner.RGB_16
,
Scanner.GRAY_8
,
Scanner.GRAY_16
,
Scanner.BLACK_AND_WHITE
public int getMode()
Scanner
getMode
in interface Scanner
Scanner.RGB_8
,
Scanner.RGB_16
,
Scanner.GRAY_8
,
Scanner.GRAY_16
,
Scanner.BLACK_AND_WHITE
public java.util.List<java.lang.Integer> getSupportedModes()
Scanner
getSupportedModes
in interface Scanner
Scanner.RGB_8
,
Scanner.RGB_16
,
Scanner.GRAY_8
,
Scanner.GRAY_16
,
Scanner.BLACK_AND_WHITE
public void setResolution(int resolution)
Scanner
setResolution
in interface Scanner
resolution
- - DPIpublic int getResolution()
Scanner
getResolution
in interface Scanner
public 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 Scanner
public void cancelTransfer()
Scanner
cancelTransfer
in interface Scanner
public int getFlatbedFunctionalUnit()
Scanner
getFlatbedFunctionalUnit
in interface Scanner
public int getFeederFunctionalUnit()
Scanner
getFeederFunctionalUnit
in interface Scanner
public boolean isDuplexSupported()
isDuplexSupported
in interface Scanner
public boolean isDuplexEnabled()
isDuplexEnabled
in interface Scanner
public void setDuplexEnabled(boolean enabled)
setDuplexEnabled
in interface Scanner
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |