Refactoring: interface of ViewPort more robust.