altosuilib: Deal with AltosUnits API change
authorKeith Packard <keithp@keithp.com>
Sat, 7 Dec 2013 17:54:17 +0000 (09:54 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 7 Dec 2013 17:54:17 +0000 (09:54 -0800)
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>
altosuilib/AltosUISeries.java

index ff430d1a1384820983d3c2cade3fe9364af71a57..441eba2b33587c47790f4e21870629f06e7b6b05 100644 (file)
@@ -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 {