int conHeight = 0;
dimensions = new org.wso2.carbon.bpel.ui.bpel2svg.SVGDimension(coreWidth, coreHeight);
coreDimensions = new org.wso2.carbon.bpel.ui.bpel2svg.SVGDimension(coreWidth, coreHeight);
conditionalDimensions = new org.wso2.carbon.bpel.ui.bpel2svg.SVGDimension(conWidth, conHeight);
SVGDimension subActivityDim = null;
org.wso2.carbon.bpel.ui.bpel2svg.ActivityInterface activity = null;
Iterator<org.wso2.carbon.bpel.ui.bpel2svg.ActivityInterface> itr = getSubActivities().iterator();
while (itr.hasNext()) {
activity = itr.next();
subActivityDim = activity.getDimensions();
if (activity instanceof FaultHandlerImpl || activity instanceof TerminationHandlerImpl || activity instanceof CompensationHandlerImpl || activity instanceof EventHandlerImpl) {
if (subActivityDim.getHeight() > conHeight) {
conHeight = subActivityDim.getHeight();
}
conWidth += subActivityDim.getWidth();
} else {
if (subActivityDim.getWidth() > coreWidth) {
coreWidth = subActivityDim.getWidth();
}
coreHeight += subActivityDim.getHeight();
}
}
coreHeight += getYSpacing() + getStartIconHeight() + getEndIconHeight();
if (!isSimpleLayout()) {