public void undo() {
        // reloads the last modified annotations state.
        documentViewModel.getAnnotationCareTaker().undo();

        // repaint the view.
        documentView.repaint();
    }