Examples of HeadCellValue


Examples of org.openpnp.gui.support.HeadCellValue

    });
   
        Configuration.get().addListener(new ConfigurationListener.Adapter() {
            public void configurationComplete(Configuration configuration) throws Exception {
                headsComboBox.removeAllItems();
                headsComboBox.addItem(new HeadCellValue((Head) null));
                for (Head head : configuration.getMachine().getHeads()) {
                    headsComboBox.addItem(new HeadCellValue(head));
                }
            }
        });
  }
View Full Code Here

Examples of org.openpnp.gui.support.HeadCellValue

    });
   
        Configuration.get().addListener(new ConfigurationListener.Adapter() {
            public void configurationComplete(Configuration configuration) throws Exception {
                headsComboBox.removeAllItems();
                headsComboBox.addItem(new HeadCellValue((Head) null));
                for (Head head : configuration.getMachine().getHeads()) {
                    headsComboBox.addItem(new HeadCellValue(head));
                }
            }
        });
  }
View Full Code Here

Examples of org.openpnp.gui.support.HeadCellValue

    });
   
        Configuration.get().addListener(new ConfigurationListener.Adapter() {
            public void configurationComplete(Configuration configuration) throws Exception {
                headsComboBox.removeAllItems();
                headsComboBox.addItem(new HeadCellValue((Head) null));
                for (Head head : configuration.getMachine().getHeads()) {
                    headsComboBox.addItem(new HeadCellValue(head));
                }
            }
        });
  }
View Full Code Here

Examples of org.openpnp.gui.support.HeadCellValue

      Nozzle nozzle = nozzles.get(row);
    switch (col) {
    case 0:
      return nozzle.getId();
    case 1:
            return new HeadCellValue(nozzle.getHead());
     
    default:
      return null;
    }
  }
View Full Code Here

Examples of org.openpnp.gui.support.HeadCellValue

      Camera camera = cameras.get(rowIndex);
      if (columnIndex == 1) {
        camera.setLooking((Looking) aValue);
      }
      else if (columnIndex == 2) {
          HeadCellValue value = (HeadCellValue) aValue;
          if (camera.getHead() == null) {
              Configuration.get().getMachine().removeCamera(camera);
          }
          else {
                    camera.getHead().removeCamera(camera);
          }
         
          if (value.getHead() == null) {
              Configuration.get().getMachine().addCamera(camera);
          }
          else {
              value.getHead().addCamera(camera);
          }
          camera.setHead(value.getHead());
      }
      configuration.setDirty(true);
    }
    catch (Exception e) {
      // TODO: dialog, bad input
View Full Code Here

Examples of org.openpnp.gui.support.HeadCellValue

    case 0:
      return camera.getId();
    case 1:
      return camera.getLooking();
    case 2:
      return new HeadCellValue(camera.getHead());
     
    default:
      return null;
    }
  }
View Full Code Here

Examples of org.openpnp.gui.support.HeadCellValue

    case 0:
      return nozzleTipWrapper.nozzleTip.getId();
    case 1:
        return nozzleTipWrapper.nozzle.getId();
        case 2:
            return new HeadCellValue(nozzleTipWrapper.nozzle.getHead());
     
    default:
      return null;
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.