Package org.openpnp.gui.support

Examples of org.openpnp.gui.support.LengthCellValue


      Part part = parts.get(rowIndex);
      if (columnIndex == 1) {
        part.setName((String) aValue);
      }
      else if (columnIndex == 2) {
        LengthCellValue value = (LengthCellValue) aValue;
        value.setDisplayNativeUnits(true);
        Length length = value.getLength();
        Length oldLength = part.getHeight();
        if (length.getUnits() == null) {
          if (oldLength != null) {
            length.setUnits(oldLength.getUnits());
          }
View Full Code Here


    case 0:
      return part.getId();
    case 1:
       return part.getName();
    case 2:
      return new LengthCellValue(part.getHeight(), true);
    case 3:
       return part.getPackage();
    default:
      return null;
    }
View Full Code Here

      else if (columnIndex == 1) {
        boardLocation.setSide((Side) aValue);
        fireTableCellUpdated(rowIndex, columnIndex);
      }
      else if (columnIndex == 2) {
        LengthCellValue value = (LengthCellValue) aValue;
        Length length = value.getLength();
        Location location = boardLocation.getLocation();
        location = Length.setLocationField(configuration, location, length, Length.Field.X);
        boardLocation.setLocation(location);
      }
      else if (columnIndex == 3) {
        LengthCellValue value = (LengthCellValue) aValue;
        Length length = value.getLength();
        Location location = boardLocation.getLocation();
        location = Length.setLocationField(configuration, location, length, Length.Field.Y);
        boardLocation.setLocation(location);
      }
      else if (columnIndex == 4) {
        LengthCellValue value = (LengthCellValue) aValue;
        Length length = value.getLength();
        Location location = boardLocation.getLocation();
        location = Length.setLocationField(configuration, location, length, Length.Field.Z);
        boardLocation.setLocation(location);
      }
      else if (columnIndex == 5) {
View Full Code Here

    case 0:
      return boardLocation.getBoard().getName();
    case 1:
      return boardLocation.getSide();
    case 2:
      return new LengthCellValue(loc.getLengthX());
    case 3:
      return new LengthCellValue(loc.getLengthY());
    case 4:
      return new LengthCellValue(loc.getLengthZ());
    case 5:
      return String.format(configuration.getLengthDisplayFormat(), loc.getRotation(), "");
    default:
      return null;
    }
View Full Code Here

      }
      else if (columnIndex == 2) {
        placement.setSide((Side) aValue);
      }
      else if (columnIndex == 3) {
        LengthCellValue value = (LengthCellValue) aValue;
        value.setDisplayNativeUnits(true);
        Length length = value.getLength();
        Location location = placement.getLocation();
        location = Length.setLocationField(configuration, location, length, Length.Field.X, true);
        placement.setLocation(location);
      }
      else if (columnIndex == 4) {
        LengthCellValue value = (LengthCellValue) aValue;
        value.setDisplayNativeUnits(true);
        Length length = value.getLength();
        Location location = placement.getLocation();
        location = Length.setLocationField(configuration, location, length, Length.Field.Y, true);
        placement.setLocation(location);
      }
            else if (columnIndex == 5) {
View Full Code Here

    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:
View Full Code Here

TOP

Related Classes of org.openpnp.gui.support.LengthCellValue

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.