diff options
author | Keith Packard <keithp@keithp.com> | 2013-08-17 17:30:52 +0200 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-08-17 17:30:52 +0200 |
commit | 4fe47adc7aca54951a50b1c1ae95cb02e46f8d3d (patch) | |
tree | 18637b599ac812f4d17c1f21c06316cb3b39fc07 /altosui | |
parent | 4ff54bb96f6c00c0c2c7dd32f81403bac331621a (diff) |
altosui: AltosDbm class was missing somehow
This doesn't appear to have been added?
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui')
-rw-r--r-- | altosui/AltosGraph.java | 19 |
1 files changed, 19 insertions, 0 deletions
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); |