Package org.openpnp.model

Examples of org.openpnp.model.Job


                updateJobActions();

                // Create an empty Job if one is not loaded
                if (JobPanel.this.jobProcessor.getJob() == null) {
                    Job job = new Job();
                    JobPanel.this.jobProcessor.load(job);
                }
            }
        });
  }
View Full Code Here


      return true;
  }

  private boolean checkForJobModifications() {
    if (jobProcessor.getJob().isDirty()) {
      Job job = jobProcessor.getJob();
      String name = (job.getFile() == null ? UNTITLED_JOB_FILENAME : job
          .getFile().getName());
      int result = JOptionPane.showConfirmDialog(frame,
          "Do you want to save your changes to " + name + "?" + "\n"
              + "If you don't save, your changes will be lost.",
          "Save " + name + "?", JOptionPane.YES_NO_CANCEL_OPTION);
View Full Code Here

      stepJobAction.setEnabled(false);
    }
  }

  private void updateTitle() {
    Job job = jobProcessor.getJob();
    String title = String.format("OpenPnP - %s%s",
        job.isDirty() ? "*" : "",
        (job.getFile() == null ? UNTITLED_JOB_FILENAME : job.getFile()
            .getName()));
    frame.setTitle(title);
  }
View Full Code Here

        JobProcessor jobProcessor = machine.getJobProcessor();
        jobProcessor.addListener(new BasicJobTestProcessorListener(notifier));
        jobProcessor.setDelegate(new BasicJobTestJobProcessorDelegate());

        Job job = createSimpleJob();

        Head h1 = machine.getHead("H1");
        Nozzle n1 = h1.getNozzle("N1");
        Nozzle n2 = h1.getNozzle("N2");
View Full Code Here

            throw notifier.exception;
        }
    }

    private Job createSimpleJob() {
        Job job = new Job();

        Board board = new Board();
        board.setName("test");

        board.addPlacement(createPlacement("R1", "R-0805-10K", 10, 10, 0, 45,
                Side.Top));
        board.addPlacement(createPlacement("R2", "R-0805-10K", 20, 20, 0, 90,
                Side.Top));

        BoardLocation boardLocation = new BoardLocation(board);
        boardLocation.setLocation(new Location(LengthUnit.Millimeters, 0, 0, 0,
                0));
        boardLocation.setSide(Side.Top);

        job.addBoardLocation(boardLocation);

        return job;
    }
View Full Code Here

TOP

Related Classes of org.openpnp.model.Job

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.