public void mouseClicked(MouseEvent e) {
        // double click we select the whole line.
        if (e.getClickCount() == 3) {
            if (documentViewModel.getViewToolMode() ==
                    DocumentViewModel.DISPLAY_TOOL_TEXT_SELECTION) {

                Page currentPage = pageViewComponent.getPageLock(this);
                // handle text selection mouse coordinates
                Point mouseLocation = (Point) e.getPoint().clone();
                lineSelectHandler(currentPage, mouseLocation);
                pageViewComponent.releasePageLock(currentPage, this);
            }
        }
        // single click we select word that was clicked. 
        else if (e.getClickCount() == 2) {
            if (documentViewModel.getViewToolMode() ==
                    DocumentViewModel.DISPLAY_TOOL_TEXT_SELECTION) {

                Page currentPage = pageViewComponent.getPageLock(this);
                // handle text selection mouse coordinates
                Point mouseLocation = (Point) e.getPoint().clone();
                wordSelectHandler(currentPage, mouseLocation);
                currentPage.getViewText().getSelected();
                pageViewComponent.releasePageLock(currentPage, this);
            }
        }
    }