@Override
    public void mouseReleased(MouseEvent me) {
        if (me.getButton() == MouseEvent.BUTTON1) {
            mouseEnd = me.getPoint();
            mousePressed = false;
            calcView();
        } else if (me.getButton() == MouseEvent.BUTTON3) {
            dm.zoomView(new Rectangle2D.Double(0, 0, dm.xmax, dm.ymax));
        }
    }