public void moveAnchor(int x, int y, int width, int height) {
        ((Rectangle) shape).x = x;
        ((Rectangle) shape).y = y;
        ((Rectangle) shape).height += height;
        ((Rectangle) shape).width += width;
        updateCornerRects();
        canvas.repaint();

    }