From 4fe47adc7aca54951a50b1c1ae95cb02e46f8d3d Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 17 Aug 2013 17:30:52 +0200 Subject: [PATCH] altosui: AltosDbm class was missing somehow This doesn't appear to have been added? Signed-off-by: Keith Packard --- altosui/AltosGraph.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/altosui/AltosGraph.java b/altosui/AltosGraph.java index 40604ce3..a73e3fd8 100644 --- a/altosui/AltosGraph.java +++ b/altosui/AltosGraph.java @@ -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); -- 2.30.2