Replaced gripper cam to monitoring cam in main panel
This commit is contained in:
@@ -25,7 +25,7 @@ public class DevicesPanel extends javax.swing.JPanel {
|
||||
GenericDevice puck_detection;
|
||||
GenericDevice sm;
|
||||
GenericDevice img;
|
||||
GenericDevice gripper_cam;
|
||||
GenericDevice monitor_cam;
|
||||
|
||||
boolean imagingEnabled;
|
||||
|
||||
@@ -76,7 +76,7 @@ public class DevicesPanel extends javax.swing.JPanel {
|
||||
laser = Controller.getInstance().getDevice("ue");
|
||||
puck_detection = Controller.getInstance().getDevice("puck_detection");
|
||||
img = imagingEnabled ? Controller.getInstance().getDevice("img") : null;
|
||||
gripper_cam = Controller.getInstance().getDevice("gripper_cam");
|
||||
monitor_cam = Controller.getInstance().getDevice("monitoring_cam");
|
||||
sm = Controller.getInstance().getDevice("smart_magnet");
|
||||
update();
|
||||
for (GenericDevice dev : getDevices()){
|
||||
@@ -93,7 +93,7 @@ public class DevicesPanel extends javax.swing.JPanel {
|
||||
setLedState(ledBarcodeReader, barcode_reader_puck);
|
||||
}
|
||||
setLedState(ledCamera, img);
|
||||
setLedState(ledGripperImage, gripper_cam);
|
||||
setLedState(ledMonitorCamera, monitor_cam);
|
||||
setLedState(ledHexiposi, hexiposi);
|
||||
setLedState(ledLaser, laser);
|
||||
setLedState(ledPuckDetection, puck_detection);
|
||||
@@ -159,7 +159,7 @@ public class DevicesPanel extends javax.swing.JPanel {
|
||||
public void setActive(boolean value){
|
||||
active = value;
|
||||
labelCamera.setActive(value);
|
||||
labelGripperImage.setActive(value);
|
||||
labelMonitorCamera.setActive(value);
|
||||
labelHexiposi.setActive(value);
|
||||
labelLaser.setActive(value);
|
||||
labelPuckDetection.setActive(value);
|
||||
@@ -198,8 +198,8 @@ public class DevicesPanel extends javax.swing.JPanel {
|
||||
ledPuckDetection = new ch.psi.pshell.swing.Led();
|
||||
ledSmartMagnet = new ch.psi.pshell.swing.Led();
|
||||
labelSmartMagnet = new ch.psi.mxsc.HyperlinkLabel();
|
||||
ledGripperImage = new ch.psi.pshell.swing.Led();
|
||||
labelGripperImage = new ch.psi.mxsc.HyperlinkLabel();
|
||||
ledMonitorCamera = new ch.psi.pshell.swing.Led();
|
||||
labelMonitorCamera = new ch.psi.mxsc.HyperlinkLabel();
|
||||
|
||||
labelRobot.setText("Robot");
|
||||
labelRobot.setActive(true);
|
||||
@@ -243,7 +243,7 @@ public class DevicesPanel extends javax.swing.JPanel {
|
||||
}
|
||||
});
|
||||
|
||||
labelCamera.setText("Camera");
|
||||
labelCamera.setText("Dewar Camera");
|
||||
labelCamera.setActive(true);
|
||||
labelCamera.addMouseListener(new java.awt.event.MouseAdapter() {
|
||||
public void mouseClicked(java.awt.event.MouseEvent evt) {
|
||||
@@ -313,17 +313,17 @@ public class DevicesPanel extends javax.swing.JPanel {
|
||||
}
|
||||
});
|
||||
|
||||
ledGripperImage.addMouseListener(new java.awt.event.MouseAdapter() {
|
||||
ledMonitorCamera.addMouseListener(new java.awt.event.MouseAdapter() {
|
||||
public void mouseClicked(java.awt.event.MouseEvent evt) {
|
||||
labelGripperImageMouseClicked(evt);
|
||||
labelMonitorCameraMouseClicked(evt);
|
||||
}
|
||||
});
|
||||
|
||||
labelGripperImage.setText("Gripper Image");
|
||||
labelGripperImage.setActive(true);
|
||||
labelGripperImage.addMouseListener(new java.awt.event.MouseAdapter() {
|
||||
labelMonitorCamera.setText("Monitoring Camera");
|
||||
labelMonitorCamera.setActive(true);
|
||||
labelMonitorCamera.addMouseListener(new java.awt.event.MouseAdapter() {
|
||||
public void mouseClicked(java.awt.event.MouseEvent evt) {
|
||||
labelGripperImageMouseClicked(evt);
|
||||
labelMonitorCameraMouseClicked(evt);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -367,10 +367,10 @@ public class DevicesPanel extends javax.swing.JPanel {
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(labelSmartMagnet, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addGroup(layout.createSequentialGroup()
|
||||
.addComponent(ledGripperImage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addComponent(ledMonitorCamera, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(labelGripperImage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
|
||||
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||
.addComponent(labelMonitorCamera, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
|
||||
.addGap(0, 0, Short.MAX_VALUE))
|
||||
);
|
||||
layout.setVerticalGroup(
|
||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
@@ -409,8 +409,8 @@ public class DevicesPanel extends javax.swing.JPanel {
|
||||
.addComponent(labelSmartMagnet, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
.addComponent(ledGripperImage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addComponent(labelGripperImage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addComponent(ledMonitorCamera, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addComponent(labelMonitorCamera, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addGap(0, 0, Short.MAX_VALUE))
|
||||
);
|
||||
}// </editor-fold>//GEN-END:initComponents
|
||||
@@ -454,16 +454,16 @@ public class DevicesPanel extends javax.swing.JPanel {
|
||||
showDevicePanel("puck_detection");
|
||||
}//GEN-LAST:event_ledPuckDetectionMouseClicked
|
||||
|
||||
private void labelGripperImageMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_labelGripperImageMouseClicked
|
||||
showRenderer("gripper_cam");
|
||||
}//GEN-LAST:event_labelGripperImageMouseClicked
|
||||
private void labelMonitorCameraMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_labelMonitorCameraMouseClicked
|
||||
showRenderer("monitoring_cam");
|
||||
}//GEN-LAST:event_labelMonitorCameraMouseClicked
|
||||
|
||||
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
private ch.psi.mxsc.HyperlinkLabel labelCamera;
|
||||
private ch.psi.mxsc.HyperlinkLabel labelGripperImage;
|
||||
private ch.psi.mxsc.HyperlinkLabel labelHexiposi;
|
||||
private ch.psi.mxsc.HyperlinkLabel labelLaser;
|
||||
private ch.psi.mxsc.HyperlinkLabel labelMonitorCamera;
|
||||
private ch.psi.mxsc.HyperlinkLabel labelPuckDetection;
|
||||
private ch.psi.mxsc.HyperlinkLabel labelReader;
|
||||
private ch.psi.mxsc.HyperlinkLabel labelRobot;
|
||||
@@ -471,9 +471,9 @@ public class DevicesPanel extends javax.swing.JPanel {
|
||||
private ch.psi.mxsc.HyperlinkLabel labelWago;
|
||||
private ch.psi.pshell.swing.Led ledBarcodeReader;
|
||||
private ch.psi.pshell.swing.Led ledCamera;
|
||||
private ch.psi.pshell.swing.Led ledGripperImage;
|
||||
private ch.psi.pshell.swing.Led ledHexiposi;
|
||||
private ch.psi.pshell.swing.Led ledLaser;
|
||||
private ch.psi.pshell.swing.Led ledMonitorCamera;
|
||||
private ch.psi.pshell.swing.Led ledPuckDetection;
|
||||
private ch.psi.pshell.swing.Led ledRobot;
|
||||
private ch.psi.pshell.swing.Led ledSmartMagnet;
|
||||
|
||||
Reference in New Issue
Block a user