public Rectangle displayBox()
{
Rectangle ret = super.displayBox();
XFigure transactionFigure = null;
switch (controlLink.getTransactionControl())
{
case ControlLink.TA_BEGIN:
transactionFigure = beginFigure;
break;
case ControlLink.TA_COMMIT:
transactionFigure = commitFigure;
break;
case ControlLink.TA_COMMIT_BEGIN:
transactionFigure = commitBeginFigure;
break;
case ControlLink.TA_ROLLBACK:
transactionFigure = rollbackFigure;
break;
case ControlLink.TA_ROLLBACK_BEGIN:
transactionFigure = rollbackBeginFigure;
break;
}
if (transactionFigure != null)
{
Rectangle taDb = transactionFigure.displayBox();
ret.add(taDb.width, taDb.height);
}
return ret.union(label.displayBox());
}