diff options
author | Keith Packard <keithp@keithp.com> | 2013-12-28 10:17:37 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-12-28 10:17:37 -0800 |
commit | 9877f6b880a0e89fbfbf1a39ded94bdc1891f3d9 (patch) | |
tree | 3196ed9b6db622d938d7f232f40c08da60dd2024 | |
parent | aa01f06acfbf029958a55f68175b6868817b333f (diff) |
altosui: Switch Graph to AltosOrient type
The graph was using a private class for orient type, use the altoslib one
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | altosui/AltosGraph.java | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/altosui/AltosGraph.java b/altosui/AltosGraph.java index ef26f4f9..42334e31 100644 --- a/altosui/AltosGraph.java +++ b/altosui/AltosGraph.java @@ -150,29 +150,6 @@ class AltosGyroUnits extends AltosUnits { } } -class AltosOrientUnits extends AltosUnits { - - public double value(double p, boolean imperial_units) { - return p; - } - - public double inverse(double p, boolean imperial_units) { - return p; - } - - public String show_units(boolean imperial_units) { - return "°"; - } - - public String say_units(boolean imperial_units) { - return "degrees"; - } - - public int show_fraction(int width, boolean imperial_units) { - return 1; - } -} - class AltosMagUnits extends AltosUnits { public double value(double p, boolean imperial_units) { @@ -231,7 +208,7 @@ public class AltosGraph extends AltosUIGraph { static AltosNsat nsat_units = new AltosNsat(); static AltosDbm dbm_units = new AltosDbm(); static AltosGyroUnits gyro_units = new AltosGyroUnits(); - static AltosOrientUnits orient_units = new AltosOrientUnits(); + static AltosOrient orient_units = new AltosOrient(); static AltosMagUnits mag_units = new AltosMagUnits(); AltosUIAxis height_axis, speed_axis, accel_axis, voltage_axis, temperature_axis, nsat_axis, dbm_axis; |