Closedown

This commit is contained in:
x07maop
2015-05-28 11:10:01 +02:00
parent dd4affe557
commit 316949cb19

View File

@@ -26,8 +26,6 @@ public class EnergyScan extends Panel {
ChannelDoubleArray data;
ChannelDoubleArray edata;
ChannelInteger count;
volatile boolean requestedPlotting;
@Override
protected JPanel create() {
panel = new PluginPanel();
@@ -35,7 +33,7 @@ public class EnergyScan extends Panel {
}
@Override
protected void onInitialize() {
protected void onInitialize(int runCount) {
super.onInitialize();
count = (ChannelInteger) getController().getDevicePool().getByName("count");
@@ -49,17 +47,18 @@ public class EnergyScan extends Panel {
@Override
public void onValueChanged(Device device, Object value, Object former) {
if (!requestedPlotting){
requestedPlotting = true;
SwingUtilities.invokeLater(() -> {
panel.plot();
});
}
update();
}
});
update();
}
@Override
protected void doUpdate() {
panel.plot();
}
public class PluginPanel extends MonitoredPanel {
final LinePlotBase plot;