|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Scanner
Interface representing a scanner device that allows a control over parameters that can be set before scanning when a native device driver UI is not displayed.
Field Summary | |
---|---|
static int |
BLACK_AND_WHITE
|
static int |
DUPLEX_AVAIL
|
static int |
DUPLEX_AVAIL_BACK_ONLY
|
static int |
DUPLEX_AVAIL_FRONT_ONLY
|
static int |
DUPLEX_NOT_AVAIL
|
static int |
GRAY_16
|
static int |
GRAY_8
|
static int |
RGB_16
|
static int |
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 |
getFunctionalUnit()
|
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 |
setFunctionalUnit(int unit)
|
void |
setMode(int mode)
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 interface eu.gnome.morena.Device |
---|
setupDevice, startTransfer, startTransfer, toString |
Field Detail |
---|
static final int RGB_8
static final int GRAY_8
static final int RGB_16
static final int GRAY_16
static final int BLACK_AND_WHITE
static final int DUPLEX_NOT_AVAIL
static final int DUPLEX_AVAIL
static final int DUPLEX_AVAIL_FRONT_ONLY
static final int DUPLEX_AVAIL_BACK_ONLY
Method Detail |
---|
int getMode()
RGB_8
,
RGB_16
,
GRAY_8
,
GRAY_16
,
BLACK_AND_WHITE
void setMode(int mode)
mode
- - color modeRGB_8
,
RGB_16
,
GRAY_8
,
GRAY_16
,
BLACK_AND_WHITE
java.util.List<java.lang.Integer> getSupportedModes()
RGB_8
,
RGB_16
,
GRAY_8
,
GRAY_16
,
BLACK_AND_WHITE
int getResolution()
void setResolution(int resolution)
resolution
- - DPIjava.util.List<java.lang.Integer> getSupportedResolutions()
void setFrame(int x, int y, int width, int height)
x
- y
- width
- height
- 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.
java.lang.Exception
void cancelTransfer()
int getFunctionalUnit()
void setFunctionalUnit(int unit)
unit
- - functional unit to be selectedint getFlatbedFunctionalUnit()
int getFeederFunctionalUnit()
boolean isDuplexSupported()
boolean isDuplexEnabled()
void setDuplexEnabled(boolean enabled)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |