Closedown

This commit is contained in:
2015-12-01 16:21:40 +01:00
parent 0b1fc9b24d
commit f6fe7812c7
2 changed files with 37 additions and 3 deletions

View File

@@ -52,6 +52,7 @@ public class Microscope extends Panel {
buttonDefineBeam = new javax.swing.JButton();
motorPanel2 = new ch.psi.pshell.swing.MotorPanel();
processVariablePanel2 = new ch.psi.pshell.swing.ProcessVariablePanel();
checkHighDef = new javax.swing.JCheckBox();
renderer.setAutoscrolls(true);
renderer.setDeviceName("mic-high");
@@ -89,6 +90,14 @@ public class Microscope extends Panel {
processVariablePanel2.setShowSlider(false);
processVariablePanel2.setShowTitle(true);
checkHighDef.setSelected(true);
checkHighDef.setText("High definition");
checkHighDef.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
checkHighDefActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
@@ -105,7 +114,10 @@ public class Microscope extends Panel {
.addComponent(motorPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(motorPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(processVariablePanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(processVariablePanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addComponent(processVariablePanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(18, 18, 18)
.addComponent(checkHighDef)))
.addContainerGap())
);
@@ -124,7 +136,9 @@ public class Microscope extends Panel {
.addComponent(processVariablePanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(processVariablePanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 109, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 68, Short.MAX_VALUE)
.addComponent(checkHighDef)
.addGap(18, 18, 18)
.addComponent(buttonDefineBeam)
.addGap(26, 26, 26))
);
@@ -173,8 +187,13 @@ public class Microscope extends Panel {
}//GEN-LAST:event_buttonDefineBeamActionPerformed
private void checkHighDefActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkHighDefActionPerformed
renderer.setDeviceName(checkHighDef.isSelected() ? "mic-high" : "mic-low");
}//GEN-LAST:event_checkHighDefActionPerformed
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton buttonDefineBeam;
private javax.swing.JCheckBox checkHighDef;
private ch.psi.pshell.swing.MotorPanel motorPanel1;
private ch.psi.pshell.swing.MotorPanel motorPanel2;
private ch.psi.pshell.swing.ProcessVariablePanel processVariablePanel1;