public void mouseMoved(MouseEvent e) {
        List<HotSpotArea> hotSpots = resizeObject.getResizeHotSpotAreas();
        for (HotSpotArea hotSpot : hotSpots) {
            if (hotSpot.getArea().contains(e.getPoint())) {
                canvas.setCursor(hotSpot.getCursorType());
                return;
            }
        }
        if (canvas.getCursor().getType() != Cursor.HAND_CURSOR) {
            canvas.setCursor(Cursor.getDefaultCursor());
        }
    }