SK.gnome.morena
Interface MorenaSource

All Superinterfaces:
java.awt.image.ImageProducer
All Known Subinterfaces:
SaneSource
All Known Implementing Classes:
TwainSource

public interface MorenaSource
extends java.awt.image.ImageProducer

Common base class for different source types.


Method Summary
 int getBitDepth()
          Get image bit depth
 double getBrightness()
          Get image brightness
 double getContrast()
          Get image contrast
 double getResolution()
          Get scan resolution
 boolean maskBadValueException(boolean mask)
          Masks some MorenaException.
maskBadValueException(true) masks all MorenaException raised set...()/get...() methods by because of bad value of capability/option result/condition code until maskBadValueException(false) is invoked.
 boolean maskUnsupportedCapabilityException(boolean mask)
          Masks some MorenaException.
maskUnsupportedCapabilityException(true) masks all MorenaException raised set...()/get...() methods by because of capability/option not supported result/condition code until maskUnsupportedCapabilityException(false) is invoked.
 void setBitDepth(int value)
          Set image bit depth
 void setBrightness(double value)
          Set image brightness
 void setColorMode()
          Set color scan mode
 void setContrast(double value)
          Set image contrast
 void setFrame(double left, double top, double right, double bottom)
          Set scan frame
 void setGrayScaleMode()
          Set gray scale scan mode
 void setResolution(double dpi)
          Set scan resolution
 void setVisible(boolean uiVisible)
          Set UI visibilit flag for startProduction().
 java.lang.String toString()
          Return source name.
 
Methods inherited from interface java.awt.image.ImageProducer
addConsumer, isConsumer, removeConsumer, requestTopDownLeftRightResend, startProduction
 

Method Detail

setResolution

void setResolution(double dpi)
                   throws MorenaException
Set scan resolution

Throws:
MorenaException

getResolution

double getResolution()
                     throws MorenaException
Get scan resolution

Throws:
MorenaException

setColorMode

void setColorMode()
                  throws MorenaException
Set color scan mode

Throws:
MorenaException

setGrayScaleMode

void setGrayScaleMode()
                      throws MorenaException
Set gray scale scan mode

Throws:
MorenaException

setBitDepth

void setBitDepth(int value)
                 throws MorenaException
Set image bit depth

Throws:
MorenaException

getBitDepth

int getBitDepth()
                throws MorenaException
Get image bit depth

Throws:
MorenaException

setContrast

void setContrast(double value)
                 throws MorenaException
Set image contrast

Throws:
MorenaException

getContrast

double getContrast()
                   throws MorenaException
Get image contrast

Throws:
MorenaException

setBrightness

void setBrightness(double value)
                   throws MorenaException
Set image brightness

Throws:
MorenaException

getBrightness

double getBrightness()
                     throws MorenaException
Get image brightness

Throws:
MorenaException

setFrame

void setFrame(double left,
              double top,
              double right,
              double bottom)
              throws MorenaException
Set scan frame

Throws:
MorenaException

maskUnsupportedCapabilityException

boolean maskUnsupportedCapabilityException(boolean mask)
                                           throws MorenaException
Masks some MorenaException.
maskUnsupportedCapabilityException(true) masks all MorenaException raised set...()/get...() methods by because of capability/option not supported result/condition code until maskUnsupportedCapabilityException(false) is invoked. Default value is true.
Returns: Previous value.

Throws:
MorenaException

maskBadValueException

boolean maskBadValueException(boolean mask)
                              throws MorenaException
Masks some MorenaException.
maskBadValueException(true) masks all MorenaException raised set...()/get...() methods by because of bad value of capability/option result/condition code until maskBadValueException(false) is invoked. Default value is true.
Returns: Previous value.

Throws:
MorenaException

setVisible

void setVisible(boolean uiVisible)
Set UI visibilit flag for startProduction().


toString

java.lang.String toString()
Return source name.

Overrides:
toString in class java.lang.Object