SK.gnome.sane
Interface SaneSource

All Superinterfaces:
java.awt.image.ImageProducer, MorenaSource

public interface SaneSource
extends MorenaSource

Java wrapper for SANE source.

For more information about various capabilities see SANE Documentation.


Method Summary
 java.lang.String getModel()
          Vendor specific model name.
 java.lang.String getName()
          Vendor specific device name.
 java.lang.Object getOption(int index)
          Get value of backend option with specified index.
 java.lang.Object getOption(java.lang.String name)
          Get value of backend option with specified name.
 SaneOptionDescriptor[] getOptionDescriptors()
          List of SANE backend options.
 int getOptionIndex(java.lang.String name)
          Index of SANE backend option with specified name.
 int getOptionsCount()
          Count of SANE backend options.
 java.lang.String getType()
          One of the following strings: "film scanner", "flatbed scanner", "frame grabber", "handheld scanner", "multi-function peripheral", "sheetfed scanner", "still camera", "video camera" or "virtual device".
 java.lang.String getVendor()
          One of the following strings: "AGFA", "Minolta", "Abaton", "Mitsubishi", "Acer", "Mustek", "Apple", "NEC", "Artec", "Nikon", "Avision", "Plustek", "CANON", "Polaroid", "Connectix", "Relisys", "Epson", "Ricoh", "Fujitsu", "Sharp", "Hewlett-Packard", "Siemens", "IBM", "Tamarack", "Kodak", "UMAX", "Logitech", "Microtek" or "Noname".
 java.lang.Object setOption(int index, java.lang.Object value)
          Set value of backend option with specified index.
 java.lang.Object setOption(java.lang.String name, java.lang.Object value)
          Set value of backend option with specified name.
 
Methods inherited from interface SK.gnome.morena.MorenaSource
getBitDepth, getBrightness, getContrast, getResolution, maskBadValueException, maskUnsupportedCapabilityException, setBitDepth, setBrightness, setColorMode, setContrast, setFrame, setGrayScaleMode, setResolution, setVisible, toString
 
Methods inherited from interface java.awt.image.ImageProducer
addConsumer, isConsumer, removeConsumer, requestTopDownLeftRightResend, startProduction
 

Method Detail

getModel

java.lang.String getModel()
                          throws java.io.IOException,
                                 SaneException
Vendor specific model name.

Throws:
java.io.IOException
SaneException

getName

java.lang.String getName()
                         throws java.io.IOException,
                                SaneException
Vendor specific device name.

Throws:
java.io.IOException
SaneException

getType

java.lang.String getType()
                         throws java.io.IOException,
                                SaneException
One of the following strings: "film scanner", "flatbed scanner", "frame grabber", "handheld scanner", "multi-function peripheral", "sheetfed scanner", "still camera", "video camera" or "virtual device".

Throws:
java.io.IOException
SaneException

getVendor

java.lang.String getVendor()
                           throws java.io.IOException,
                                  SaneException
One of the following strings: "AGFA", "Minolta", "Abaton", "Mitsubishi", "Acer", "Mustek", "Apple", "NEC", "Artec", "Nikon", "Avision", "Plustek", "CANON", "Polaroid", "Connectix", "Relisys", "Epson", "Ricoh", "Fujitsu", "Sharp", "Hewlett-Packard", "Siemens", "IBM", "Tamarack", "Kodak", "UMAX", "Logitech", "Microtek" or "Noname".

Throws:
java.io.IOException
SaneException

getOptionDescriptors

SaneOptionDescriptor[] getOptionDescriptors()
                                            throws java.io.IOException,
                                                   SaneException
List of SANE backend options.

Throws:
java.io.IOException
SaneException

getOptionsCount

int getOptionsCount()
                    throws java.io.IOException,
                           SaneException
Count of SANE backend options.

Throws:
java.io.IOException
SaneException

getOptionIndex

int getOptionIndex(java.lang.String name)
                   throws java.io.IOException,
                          SaneException
Index of SANE backend option with specified name.

Throws:
java.io.IOException
SaneException

getOption

java.lang.Object getOption(int index)
                           throws java.io.IOException,
                                  SaneException
Get value of backend option with specified index.

Throws:
java.io.IOException
SaneException

getOption

java.lang.Object getOption(java.lang.String name)
                           throws java.io.IOException,
                                  SaneException
Get value of backend option with specified name.

Throws:
java.io.IOException
SaneException

setOption

java.lang.Object setOption(int index,
                           java.lang.Object value)
                           throws java.io.IOException,
                                  SaneException
Set value of backend option with specified index.

Throws:
java.io.IOException
SaneException

setOption

java.lang.Object setOption(java.lang.String name,
                           java.lang.Object value)
                           throws java.io.IOException,
                                  SaneException
Set value of backend option with specified name.

Throws:
java.io.IOException
SaneException