altosuilib: rescale axis when enabling data series
authorKeith Packard <keithp@keithp.com>
Mon, 11 Feb 2013 18:24:34 +0000 (10:24 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 11 Feb 2013 18:29:35 +0000 (10:29 -0800)
This makes sure new series are visible when you enable them.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosuilib/AltosUIAxis.java

index 70084a0096b214c85f75fce4bde2971ee11dc2a6..867b03841bb4100cfaf4298377cb55fd52a990e4 100644 (file)
@@ -62,6 +62,8 @@ public class AltosUIAxis extends NumberAxis {
                                System.out.printf("too few visible\n");
                }
                setVisible(visible > 0);
+               if (enable)
+                       autoAdjustRange();
        }
 
        public void ref(boolean enable) {