summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-12-07 09:54:17 -0800
committerKeith Packard <keithp@keithp.com>2013-12-07 09:54:17 -0800
commiteee9b3ce1e5adae5aa4566050b6d6048344e92c4 (patch)
tree776c29c2677bd65b6367b8fe9510bd3ab9b364e2
parent407696f11ac1736e840c9b702592c46197d14c2c (diff)
altosuilib: Deal with AltosUnits API change
The abstract methods in AltosUnits now pass the 'imperial_units' flag explicitly, so deal with that in AltosUnits itself Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altosuilib/AltosUISeries.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/altosuilib/AltosUISeries.java b/altosuilib/AltosUISeries.java
index ff430d1a..441eba2b 100644
--- a/altosuilib/AltosUISeries.java
+++ b/altosuilib/AltosUISeries.java
@@ -35,17 +35,21 @@ import org.jfree.data.xy.*;
import org.jfree.data.*;
class AltosUITime extends AltosUnits {
- public double value(double v) { return v; }
- public String show_units() { return "s"; }
- public String say_units() { return "seconds"; }
+ public double value(double v, boolean imperial_units) { return v; }
- public int show_fraction(int width) {
+ public double inverse(double v, boolean imperial_unis) { return v; }
+
+ public String show_units(boolean imperial_units) { return "s"; }
+
+ public String say_units(boolean imperial_units) { return "seconds"; }
+
+ public int show_fraction(int width, boolean imperial_units) {
if (width < 5)
return 0;
return width - 5;
}
- public int say_fraction() { return 0; }
+ public int say_fraction(boolean imperial_units) { return 0; }
}
public class AltosUISeries extends XYSeries implements AltosUIGrapher {