View | Details | Raw Unified | Return to bug 320942
Collapse All | Expand All

(-)src/org/eclipse/gmf/runtime/diagram/ui/figures/IExpandableFigure.java (+8 lines)
Lines 21-26 Link Here
21
 */
21
 */
22
public interface IExpandableFigure {
22
public interface IExpandableFigure {
23
23
24
	/**
25
	 * 
26
	 * Implementation may return the Rectangle by reference. For this reason,
27
	 * callers of this method must not modify the returned Rectangle. The
28
	 * Rectangle's values may change in the future.
29
	 * 
30
	 * @return This IExpandableFigure's extended bounds
31
	 */
24
	Rectangle getExtendedBounds();
32
	Rectangle getExtendedBounds();
25
33
26
}
34
}
(-)src/org/eclipse/gmf/runtime/diagram/ui/render/util/DiagramImageUtils.java (-1 / +1 lines)
Lines 63-69 Link Here
63
			IFigure figure = editPart.getFigure();
63
			IFigure figure = editPart.getFigure();
64
			Rectangle bounds = null;
64
			Rectangle bounds = null;
65
			if (figure instanceof IExpandableFigure)
65
			if (figure instanceof IExpandableFigure)
66
				bounds = ((IExpandableFigure) figure).getExtendedBounds();
66
				bounds = ((IExpandableFigure) figure).getExtendedBounds().getCopy();
67
			else
67
			else
68
				bounds = figure.getBounds().getCopy();
68
				bounds = figure.getBounds().getCopy();
69
			translateTo(bounds, figure, printableLayer);
69
			translateTo(bounds, figure, printableLayer);

Return to bug 320942