public boolean setRotation(float viewRotation) {
        if (documentViewModel == null) {
            return false;
        }
        boolean changed = documentViewModel.setViewRotation(viewRotation);
        documentViewModel.setViewRotation(viewRotation);
        documentViewScrollPane.revalidate();
        return changed;

    }

//    public void updateDocumentView(){
//        if (documentView != null)
//            documentView.updateDocumentView();
//    }