code: public void addLayoutComponent (Component comp, Object constraints)
      {
          if (!(constraints instanceof Point ||
                constraints instanceof Rectangle)) {
              throw new IllegalArgumentException("Constraints must be " +
                                                 "Point or Rectangle");
          }
          _constraints.put(comp, constraints);
      }
docs: documentation inherited from interface