public void mouseClicked(MouseEvent e) {

        List<Arrow> arrows = canvas.getArrows();
        canvas.clearSelectAction();
        for (Arrow arrow : arrows) {
            if (arrow.getArrowArea().contains(e.getPoint())) {
                if (e.getButton() == MouseEvent.BUTTON3 && e.getClickCount() == 1) {
                    Point position = e.getPoint();
                    SwingUtilities.convertPointToScreen(position, canvas);
                    canvas.showArrowPopupMenu(position, arrow);
                }
                if (e.getClickCount() == 2 && e.getButton() == MouseEvent.BUTTON1) {
                    canvas.showModifyArrowJTF(arrow);
                } else {
                    canvas.markArrow(arrow);
                }
                return;
            } else {
                canvas.clearSelectAction();
            }
        }

    }