Package org.openpnp.gui.components.reticle

Examples of org.openpnp.gui.components.reticle.PackageReticle


                .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());
                          }
View Full Code Here


        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());
                    }                                      
View Full Code Here

TOP

Related Classes of org.openpnp.gui.components.reticle.PackageReticle

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.