summaryrefslogtreecommitdiff
path: root/japi/SaneOption.java
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 17:00:20 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 17:00:20 +0200
commit3759ce55ba79b8d3b9d8ed247a252273ee7dade3 (patch)
treed69692a274dd1c7d0672e6bb7155a0fc106f9d49 /japi/SaneOption.java
parentc8bd2513ecba169cff44c09c8058c36987357b18 (diff)
parent1687222e1b9e74c89cafbb5910e72d8ec7bfd40f (diff)
Update upstream source from tag 'upstream/1.0.28'
Update to upstream version '1.0.28' with Debian dir ec5bb298266630fc3801ff6dc0c258f6df7ba979
Diffstat (limited to 'japi/SaneOption.java')
-rw-r--r--japi/SaneOption.java25
1 files changed, 12 insertions, 13 deletions
diff --git a/japi/SaneOption.java b/japi/SaneOption.java
index ed460c7..0c8c736 100644
--- a/japi/SaneOption.java
+++ b/japi/SaneOption.java
@@ -58,13 +58,13 @@ public class SaneOption
//
// Sane value units:
//
- public static final int UNIT_NONE = 0; // the value is unit-less
- // (e.g., # of scans)
- public static final int UNIT_PIXEL = 1; // value is number of pixels
- public static final int UNIT_BIT = 2; // value is number of bits
- public static final int UNIT_MM = 3; // value is millimeters
- public static final int UNIT_DPI = 4; // value is res. in dots/inch
- public static final int UNIT_PERCENT = 5;// value is a percentage
+ public static final int UNIT_NONE = 0; // the value is unit-less
+ // (e.g., # of scans)
+ public static final int UNIT_PIXEL = 1; // value is number of pixels
+ public static final int UNIT_BIT = 2; // value is number of bits
+ public static final int UNIT_MM = 3; // value is millimeters
+ public static final int UNIT_DPI = 4; // value is res. in dots/inch
+ public static final int UNIT_PERCENT = 5;// value is a percentage
//
// Option capabilities:
//
@@ -100,13 +100,13 @@ public class SaneOption
//
// Class members:
//
- public String name; // name of this option (command-line name)
- public String title; // title of this option (single-line)
- public String desc; // description of this option (multi-line)
+ public String name; // name of this option (command-line name)
+ public String title; // title of this option (single-line)
+ public String desc; // description of this option (multi-line)
public int type; // how are values interpreted? (TYPE_)
public int unit; // what is the (physical) unit? (UNIT_)
public int size;
- public int cap; // capabilities
+ public int cap; // capabilities
public int constraintType;
// These are a union in the "C" API:
// Null-terminated list:
@@ -123,7 +123,7 @@ public class SaneOption
{ return ((cap) & CAP_SOFT_SELECT) == 0; }
// Return string describing units.
// "unitLength" is # mm. preferred.
- public String unitString(double unitLength)
+ public String unitString(double unitLength)
{
switch (unit)
{
@@ -142,4 +142,3 @@ public class SaneOption
return "";
}
}
-