*/
public boolean setBoundsOnFigure(boolean updateConstraint) {
List parts = getChildren();
for (Iterator iter = parts.iterator(); iter.hasNext();) {
ActivityPart part = (ActivityPart) iter.next();
Activity activity = part.getModelElement();
Rectangle bounds = activity.getBounds();
if (isFirstManualLayout) {
Rectangle savedBounds = diagram.doReadCoordinates(activity);
if (savedBounds != null) {
bounds = savedBounds;
}
}
IFigure figure = part.getFigure();
if (bounds != null && figure != null && updateConstraint) {
delegatingLayoutManager.setXYLayoutConstraint(figure, new Rectangle(bounds.x, bounds.y, bounds.width,
bounds.height));
activity.setBounds(bounds);
activity.setHasManualBounds(true);
}
}
isFirstManualLayout = false;
return true;
}