With lengthy white papers, energetic diplomacy and generous aid policies, Chinese officials have taken pains in recent years to present their country as a new kind of global power that, unlike the United States, has only good will toward other nations.