Package org.openpnp.gui.components

Examples of org.openpnp.gui.components.CameraView


              return;
            }
            placementSelectionActionGroup
                .setEnabled(getSelectedPlacement() != null);
            Placement placement = getSelectedPlacement();
            CameraView cameraView = MainFrame.cameraPanel.getSelectedCameraView();
            if (cameraView != null) {
                          if (placement != null) {
                                Reticle reticle = new PackageReticle(placement.getPart().getPackage());
                                cameraView.setReticle(JobPanel.this.getClass().getName(), reticle);
                          }
                          else {
                              cameraView.removeReticle(JobPanel.this.getClass().getName());
                          }
            }
          }
        });
   
        addComponentListener(new ComponentAdapter() {
            @Override
            public void componentHidden(ComponentEvent e) {
                CameraView cameraView = MainFrame.cameraPanel.getSelectedCameraView();
                if (cameraView != null) {
                    cameraView.removeReticle(JobPanel.this.getClass().getName());
                }
            }
        });

View Full Code Here


        }
        Part part = getSelectedPart();
       
        deletePartAction.setEnabled(part != null);
       
            CameraView cameraView = MainFrame.cameraPanel.getSelectedCameraView();
            if (cameraView != null) {
                  if (part != null) {
                      Reticle reticle = new OutlineReticle(part.getPackage().getOutline());
                      MainFrame.cameraPanel.getSelectedCameraView().setReticle(PartsPanel.this.getClass().getName(), reticle);
                  }
                  else {
                      MainFrame.cameraPanel.getSelectedCameraView().removeReticle(PartsPanel.this.getClass().getName());
                  }                                      
            }
      }
    });
   
   
        addComponentListener(new ComponentAdapter() {
            @Override
            public void componentHidden(ComponentEvent e) {
                CameraView cameraView = MainFrame.cameraPanel.getSelectedCameraView();
                if (cameraView != null) {
                    cameraView.removeReticle(PartsPanel.this.getClass().getName());
                }
            }
        });       
       
    deletePartAction.setEnabled(false);
View Full Code Here

        }
        Package this_package = getSelectedPackage();
       
        deletePackageAction.setEnabled(this_package != null);
       
                CameraView cameraView = MainFrame.cameraPanel.getSelectedCameraView();
                if (cameraView != null) {
                    if (this_package != null) {
                        Reticle reticle = new PackageReticle(this_package);
                        cameraView.setReticle(PackagesPanel.this.getClass().getName(), reticle);
                    }
                    else {
                        MainFrame.cameraPanel.getSelectedCameraView().removeReticle(PackagesPanel.this.getClass().getName());
                    }                                      
                }
      }
    });


        addComponentListener(new ComponentAdapter() {
            @Override
            public void componentHidden(ComponentEvent e) {
                CameraView cameraView = MainFrame.cameraPanel.getSelectedCameraView();
                if (cameraView != null) {
                    cameraView.removeReticle(PackagesPanel.this.getClass().getName());
                }
            }
        });       
   
    deletePackageAction.setEnabled(false);
View Full Code Here

        });
   
        addComponentListener(new ComponentAdapter() {
            @Override
            public void componentHidden(ComponentEvent e) {
                CameraView cameraView = MainFrame.cameraPanel.getSelectedCameraView();
                if (cameraView != null) {
                    cameraView.removeReticle(FeedersPanel.this.getClass().getName());
                }
            }
        });
   
View Full Code Here

TOP

Related Classes of org.openpnp.gui.components.CameraView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.