public void mousePressed(MouseEvent me) {

        // setup visual effect when the mouse button is pressed or held down
        // inside the active area of the annotation.
        isMousePressed = true;

        if (documentViewModel.getViewToolMode() ==
                DocumentViewModel.DISPLAY_TOOL_SELECTION &&
                isInteractiveAnnotationsEnabled &&
                !annotation.getFlagReadOnly()) {
            ResizableBorder border = (ResizableBorder) getBorder();
            cursor = border.getCursor(me);
            startPos = me.getPoint();
            previousAnnotationState = new AnnotationState(this);
            // mark annotation as selected. 
            documentViewController.assignSelectedAnnotation(this);
        }
        repaint();
    }