The configuration of a polymer chain interacting with a plane interface