altosuilib: Add setNotify/fireSeriesChanged methods to AltosUIGrapher
authorKeith Packard <keithp@keithp.com>
Fri, 1 Mar 2013 20:28:34 +0000 (12:28 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 1 Mar 2013 20:28:34 +0000 (12:28 -0800)
This will let the data adding functions disable notifications while
adding all of the graph data, and then send a single notification when
the data sets are complete, which speeds up creating of the graph
elements quite a bit.

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

index c627fec52bd37cbe3833b8ade2daba5b8d9a6add..8f0ce8011d6595d7812d9b9888cfd8f2f7cc3fb1 100644 (file)
@@ -43,4 +43,8 @@ interface AltosUIGrapher {
        public abstract void add(AltosUIDataPoint dataPoint);
 
        public abstract void set_enable(boolean enable);
+
+       public abstract void setNotify(boolean notify);
+
+       public abstract void fireSeriesChanged();
 }
index e2eb9028d147892b9d6a70794ff9dd0cb0bdee14..0949be6f94af3122ed0b31d2643eb16754b40c9f 100644 (file)
@@ -100,6 +100,12 @@ public class AltosUIMarker implements AltosUIGrapher {
                this.enabled = enable;
        }
 
+       public void setNotify(boolean notify) {
+       }
+
+       public void fireSeriesChanged() {
+       }
+
        public AltosUIMarker (int fetch, Color color, XYPlot plot) {
                this(fetch, color, plot, true);
        }