diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules/composite-diagram/src/main/java/org/apache/tuscany/sca/diagram/layout/CompositeEntity.java')
-rwxr-xr-x | sca-java-2.x/trunk/modules/composite-diagram/src/main/java/org/apache/tuscany/sca/diagram/layout/CompositeEntity.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sca-java-2.x/trunk/modules/composite-diagram/src/main/java/org/apache/tuscany/sca/diagram/layout/CompositeEntity.java b/sca-java-2.x/trunk/modules/composite-diagram/src/main/java/org/apache/tuscany/sca/diagram/layout/CompositeEntity.java index 02e98c56d5..bd0a71431f 100755 --- a/sca-java-2.x/trunk/modules/composite-diagram/src/main/java/org/apache/tuscany/sca/diagram/layout/CompositeEntity.java +++ b/sca-java-2.x/trunk/modules/composite-diagram/src/main/java/org/apache/tuscany/sca/diagram/layout/CompositeEntity.java @@ -68,26 +68,18 @@ public class CompositeEntity extends Entity { int h = 0; int w = 0; - int lastHeight = 0; - // int lastWidth = 0; for (ComponentEntity ent : componentList) { if (ent.getLevel() > maxInternalLevel) { maxInternalLevel = ent.getLevel(); - lastHeight = ent.getHeight(); - h += ent.getHeight() * getSpaceFactor(); + h += (ent.getHeight() + Constant.COMPONENT_DEFAULT_HEIGHT); } if (ent.getLane() > maxInternalLane) { maxInternalLane = ent.getLane(); - // lastWidth = ent.getWidth(); - w += ent.getWidth() * getSpaceFactor(); + w += (ent.getWidth() + Constant.COMPONENT_DEFAULT_WIDTH); } } - // For last level, no spacing is needed - h -= lastHeight * (getSpaceFactor() - 1); - // w -= lastWidth * (getSpaceFactor() - 1); - // Find the services height int size1 = services.size(); int total1 = size1 * serHeight + (size1 + 1) * Constant.SPACING_FOR_COMPOSITE_OF_SERVICE; |