[core] Add NICenter methods for centering views.