Closedown
This commit is contained in:
+16
-1
@@ -32,6 +32,10 @@
|
||||
<Component id="processVariablePanel2" linkSize="1" alignment="0" min="-2" pref="324" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||
<Component id="checkHighDef" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
</Group>
|
||||
@@ -51,7 +55,9 @@
|
||||
<Component id="processVariablePanel1" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="processVariablePanel2" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace pref="109" max="32767" attributes="0"/>
|
||||
<EmptySpace pref="68" max="32767" attributes="0"/>
|
||||
<Component id="checkHighDef" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||
<Component id="buttonDefineBeam" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace min="-2" pref="26" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
@@ -129,5 +135,14 @@
|
||||
<Property name="showTitle" type="boolean" value="true"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JCheckBox" name="checkHighDef">
|
||||
<Properties>
|
||||
<Property name="selected" type="boolean" value="true"/>
|
||||
<Property name="text" type="java.lang.String" value="High definition"/>
|
||||
</Properties>
|
||||
<Events>
|
||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="checkHighDefActionPerformed"/>
|
||||
</Events>
|
||||
</Component>
|
||||
</SubComponents>
|
||||
</Form>
|
||||
|
||||
+21
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user