PNIPAM chain collapse depends on the molecular weight and grafting density.