summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
351e411)
This reduces the number of notify calls made and dramatically speeds
up graph creation.
Signed-off-by: Keith Packard <keithp@keithp.com>
}
public void resetData() {
}
public void resetData() {
- for (AltosUIGrapher g : graphers)
+ for (AltosUIGrapher g : graphers) {
+ g.setNotify(false);
+ }
if (dataSet != null) {
for (AltosUIDataPoint dataPoint : dataSet.dataPoints())
for (AltosUIGrapher g : graphers)
g.add(dataPoint);
}
if (dataSet != null) {
for (AltosUIDataPoint dataPoint : dataSet.dataPoints())
for (AltosUIGrapher g : graphers)
g.add(dataPoint);
}
+ for (AltosUIGrapher g : graphers) {
+ g.setNotify(true);
+ g.fireSeriesChanged();
+ }
}
public void units_changed(boolean imperial_units) {
}
public void units_changed(boolean imperial_units) {