Package org.openpnp.gui.components.reticle

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


            placementSelectionActionGroup
                .setEnabled(getSelectedPlacement() != null);
           
                        Placement placement = getSelectedPlacement();
                        if (placement != null) {
                            Reticle reticle = new OutlineReticle(placement.getPart().getPackage().getOutline());
                            MainFrame.cameraPanel.getSelectedCameraView().setReticle(BoardsPanel.this.getClass().getName(), reticle);
                        }
                        else {
                            MainFrame.cameraPanel.getSelectedCameraView().removeReticle(BoardsPanel.this.getClass().getName());
                        }           
View Full Code Here


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

TOP

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

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.