Package org.openpnp.model

Examples of org.openpnp.model.Placement


      // TODO: dialog, bad input
    }
  }

  public Object getValueAt(int row, int col) {
    Placement placement = board.getPlacements().get(row);
    Location loc = placement.getLocation();
    switch (col) {
    case 0:
       return placement.getId();
    case 1:
      return placement.getPart();
    case 2:
       return placement.getSide();
    case 3:
      return new LengthCellValue(loc.getLengthX(), true);
    case 4:
      return new LengthCellValue(loc.getLengthY(), true);
    case 5:
      return String.format(configuration.getLengthDisplayFormat(), loc.getRotation());
    case 6:
        return placement.isPlace();
    default:
      return null;
    }
  }
View Full Code Here

TOP

Related Classes of org.openpnp.model.Placement

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.