X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altosuilib%2FAltosUIGraph.java;h=ef0cc6772daa8e80e8f06d216ddfdabed136c5fe;hp=5c589c02555070637c7d3055cb9c91087f70c848;hb=6aa99c160f0695eb25ccc0598e4c36224c89dab4;hpb=2efd3ad80d4fefa8ccc1b80a2e657dbf9ba0c60f diff --git a/altosuilib/AltosUIGraph.java b/altosuilib/AltosUIGraph.java index 5c589c02..ef0cc677 100644 --- a/altosuilib/AltosUIGraph.java +++ b/altosuilib/AltosUIGraph.java @@ -22,7 +22,7 @@ import java.util.ArrayList; import java.awt.*; import javax.swing.*; -import org.altusmetrum.altoslib_1.*; +import org.altusmetrum.altoslib_2.*; import org.jfree.ui.*; import org.jfree.chart.*; @@ -91,13 +91,19 @@ public class AltosUIGraph implements AltosUnitsListener { } public void resetData() { - for (AltosUIGrapher g : graphers) + for (AltosUIGrapher g : graphers) { g.clear(); + g.setNotify(false); + } 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) {