altosui: AltosDbm class was missing somehow
authorKeith Packard <keithp@keithp.com>
Sat, 17 Aug 2013 15:30:52 +0000 (17:30 +0200)
committerKeith Packard <keithp@keithp.com>
Sat, 17 Aug 2013 15:30:52 +0000 (17:30 +0200)
This doesn't appear to have been added?

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosGraph.java

index 40604ce3574060a3a20d09f62244ac6a32f6d3c0..a73e3fd8ee2837e67df4e23e02ba86543afb6386 100644 (file)
@@ -92,6 +92,25 @@ class AltosPressure extends AltosUnits {
        }
 }
 
+class AltosDbm extends AltosUnits {
+
+       public double value(double d) {
+               return d;
+       }
+
+       public String show_units() {
+               return "dBm";
+       }
+
+       public String say_units() {
+               return "D B M";
+       }
+
+       public int show_fraction(int width) {
+               return 0;
+       }
+}
+
 public class AltosGraph extends AltosUIGraph {
 
        static final private Color height_color = new Color(194,31,31);