Casey Stoner celebrated his 26th birthday by clinching his second MotoGP title in front of a home crowd in Australia.