|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tuneology.sane.OptionDescriptor
Option descriptors are at the same time the most intricate and powerful type in the SANE standard. Options are used to control virtually all aspects of device operation. Much of the power of the SANE API stems from the fact that most device controls are completely described by their respective option descriptor. Thus, a frontend can control a scanner abstractly, without requiring knowledge as to what the purpose of any given option is. Conversely, a scanner can describe its controls without requiring knowledge of how the frontend operates.
Method Summary | |
int |
getCap()
Describes what capabilities the option posseses. |
java.lang.String |
getDescription()
A (potentially very) long string that can be used as a help text to describe the option. |
java.lang.Object[] |
getElements()
Returns an array of constraint elements for the option. |
java.lang.String |
getName()
String that uniquely identifies the option. |
SaneRange |
getRange()
If not null, indicates a range of values for the option. |
int |
getSize()
Returns the number of elements in the option. |
java.lang.String |
getTitle()
A single-line string that can be used by the frontend as a title string. |
int |
getUnit()
Specifies the type of the option value. |
void |
setAutomatic()
Turn on automatic mode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.String getName()
public java.lang.String getTitle()
public java.lang.String getDescription()
public int getUnit()
public int getCap()
CAP_SOFT_SELECT
CAP_HARD_SELECT
CAP_SOFT_DETECT
CAP_EMULATED
CAP_AUTOMATIC
CAP_INACTIVE
CAP_ADVANCED
CAP_ALWAYS_SETTABLE
public int getSize()
public java.lang.Object[] getElements()
public SaneRange getRange()
public void setAutomatic() throws SaneException
SaneException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |