summaryrefslogtreecommitdiff
path: root/japi/SaneOption.java
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 16:59:49 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 16:59:49 +0200
commit1687222e1b9e74c89cafbb5910e72d8ec7bfd40f (patch)
treed78102ce30207c63e7608eeba743efd680c888dc /japi/SaneOption.java
parent58912f68c2489bcee787599837447e0d64dfd61a (diff)
New upstream version 1.0.28upstream/1.0.28
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 "";
}
}
-