public static enum SaneOption.OptionUnits extends java.lang.Enum<SaneOption.OptionUnits>
SaneOption.getUnits() indicating what units, if
any, the value has.| Enum Constant and Description |
|---|
UNIT_BIT
The option unit is bits.
|
UNIT_DPI
The option unit is dots per inch.
|
UNIT_MICROSECOND
The option unit is microseconds.
|
UNIT_MM
The option unit is millimeters.
|
UNIT_NONE
The option has no units.
|
UNIT_PERCENT
The option unit is a percentage.
|
UNIT_PIXEL
The option unit is pixels.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getWireValue()
Returns the integer used by the SANE network protocol to represent an instance of this enum on
the wire.
|
static SaneOption.OptionUnits |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SaneOption.OptionUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SaneOption.OptionUnits UNIT_NONE
public static final SaneOption.OptionUnits UNIT_PIXEL
public static final SaneOption.OptionUnits UNIT_BIT
public static final SaneOption.OptionUnits UNIT_MM
public static final SaneOption.OptionUnits UNIT_DPI
public static final SaneOption.OptionUnits UNIT_PERCENT
public static final SaneOption.OptionUnits UNIT_MICROSECOND
public static SaneOption.OptionUnits[] values()
for (SaneOption.OptionUnits c : SaneOption.OptionUnits.values()) System.out.println(c);
public static SaneOption.OptionUnits valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getWireValue()