@Override
    public void resizeChild(GraphicalObject child) {
        BoundaryRectangle r = child.getBoundingBox();
        if (r.width == width && r.height == height) {
            child.moveTo(0, 0);
            return;
        }
        this.width = r.width;
        this.height = r.height;
        child.moveTo(0, 0);
        if (group != null) {
            group.resizeChild(this);
        }
    }