From: Keith Packard Date: Sat, 17 Aug 2013 15:30:52 +0000 (+0200) Subject: altosui: AltosDbm class was missing somehow X-Git-Tag: 1.2.9.4~133^2~6 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=4fe47adc7aca54951a50b1c1ae95cb02e46f8d3d;hp=4ff54bb96f6c00c0c2c7dd32f81403bac331621a altosui: AltosDbm class was missing somehow This doesn't appear to have been added? Signed-off-by: Keith Packard --- 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);