Closedown
This commit is contained in:
@@ -17,6 +17,7 @@ import ch.psi.utils.State;
|
||||
import ch.psi.utils.swing.SwingUtils;
|
||||
import java.awt.Color;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.swing.JSpinner;
|
||||
|
||||
/**
|
||||
@@ -25,12 +26,14 @@ import javax.swing.JSpinner;
|
||||
public class SchottkyScan extends Panel {
|
||||
|
||||
LinePlotErrorSeries series = new LinePlotErrorSeries("Values");
|
||||
Double rfPhase;
|
||||
Double beamPhase;
|
||||
|
||||
public SchottkyScan() {
|
||||
initComponents();
|
||||
plot.setStyle(LinePlotJFree.Style.ErrorY);
|
||||
plot.addSeries(series);
|
||||
plot.getAxis(Plot.AxisId.X).setLabel("Gun Phase");
|
||||
plot.getAxis(Plot.AxisId.X).setLabel("RF Gun Phase");
|
||||
plot.getAxis(Plot.AxisId.Y).setLabel("SINEG01-DICT215:B1_CHARGE");
|
||||
setPersistedComponents(SwingUtils.getComponentsByType(panelPars, JSpinner.class));
|
||||
}
|
||||
@@ -132,7 +135,7 @@ public class SchottkyScan extends Panel {
|
||||
}
|
||||
});
|
||||
|
||||
panelPars.setBorder(javax.swing.BorderFactory.createTitledBorder("Parameters (beam phase)"));
|
||||
panelPars.setBorder(javax.swing.BorderFactory.createTitledBorder("Parameters (RF phase)"));
|
||||
|
||||
spinnerStep.setModel(new javax.swing.SpinnerNumberModel(5.0d, 1.0d, 90.0d, 1.0d));
|
||||
|
||||
@@ -319,6 +322,7 @@ public class SchottkyScan extends Panel {
|
||||
parameters.add(spinnerStep.getValue());
|
||||
parameters.add(spinnerSamples.getValue());
|
||||
parameters.add(spinnerLatency.getValue());
|
||||
parameters.add(plot);
|
||||
try {
|
||||
//How to get a callback on the end of execution
|
||||
runAsync("RFscan/SchottkyScan", parameters).handle((ret, ex) -> {
|
||||
|
||||
Reference in New Issue
Block a user