public void validate() {
        if (currentZoom != documentViewModel.getViewZoom() ||
                currentRotation != documentViewModel.getViewRotation()) {
            refreshDirtyBounds();
            currentRotation = documentViewModel.getViewRotation();
            currentZoom = documentViewModel.getViewZoom();
        }

        if (resized) {
            refreshAnnotationRect();
            if (getParent() != null) {
                ((JComponent) getParent()).revalidate();
                getParent().repaint();
            }
            resized = false;
            wasResized = true;
        }

    }