public void updateCornerRects() {
        int width = 7;
        int height = 7;
        Point fi = new Point(((Rectangle) getShape()).x - 5, ((Rectangle) getShape()).y - 5);
        Point sec = new Point(((Rectangle) getShape()).x + ((Rectangle) getShape()).width, ((Rectangle) getShape()).y - 5);
        Point thi = new Point(((Rectangle) getShape()).x + ((Rectangle) getShape()).width, ((Rectangle) getShape()).y + ((Rectangle) getShape()).height);
        Point four = new Point(((Rectangle) getShape()).x - 5, ((Rectangle) getShape()).y + ((Rectangle) getShape()).height);
        firstCorner = (new Rectangle(fi.x, fi.y, width, height));
        secondCorner = (new Rectangle(sec.x, sec.y, width, height));
        thirdCorner = (new Rectangle(thi.x, thi.y, width, height));
        fourthCorner = (new Rectangle(four.x, four.y, width, height));
    }