diff options
| author | Keith Packard <keithp@keithp.com> | 2014-06-14 14:39:26 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2014-06-14 14:39:26 -0700 |
| commit | 8250777e6e869bcee9781691caa1f2a7cfb33b43 (patch) | |
| tree | 0f05d7718535d4a84b0e912d476dbd1cc9fe75a8 /altosuilib/AltosUIVoltageIndicator.java | |
| parent | 19273a4a341342ca6b5d65cfc490d92cbf23356f (diff) | |
altosuilib: Add more options to AltosUIIndicator to suit AltosUI
This makes AltosUIIndicator capable of displaying most stuff in AltosUI
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosUIVoltageIndicator.java')
| -rw-r--r-- | altosuilib/AltosUIVoltageIndicator.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/altosuilib/AltosUIVoltageIndicator.java b/altosuilib/AltosUIVoltageIndicator.java index 36835663..3ff17213 100644 --- a/altosuilib/AltosUIVoltageIndicator.java +++ b/altosuilib/AltosUIVoltageIndicator.java @@ -30,13 +30,13 @@ public abstract class AltosUIVoltageIndicator extends AltosUIUnitsIndicator { return voltage(state); } - public boolean good(double value) { - return value >= good(); - } - double last_voltage = -1; + public AltosUIVoltageIndicator (Container container, int x, int y, String name, int width) { + super(container, x, y, AltosConvert.voltage, name, 1, true, width); + } + public AltosUIVoltageIndicator (Container container, int y, String name, int width) { - super(container, y, AltosConvert.voltage, name, 1, true, width); + this(container, 0, y, name, width); } } |
