maxRect.add(corner);
	public Rectangle calculateLayout(Point origin, Point corner) {		Rectangle maxRect = new Rectangle(origin);		FigureEnumeration fe = getLayoutable().figures();		while (fe.hasNextFigure()) {			Figure currentFigure = fe.nextFigure();			maxRect.union(currentFigure.displayBox());		}		maxRect.width += getInsets().left + getInsets().right;		maxRect.height += getInsets().top + getInsets().bottom;		return maxRect;	}