int minx = Integer.MAX_VALUE;
int maxx = 0;
if (featureLayout.feature.getAllRelatedRelation()!=null)
for (Iterator<FeatureRelation> itFeatureRelation = (Iterator<FeatureRelation>)featureLayout.feature.getAllRelatedRelation().iterator() ; itFeatureRelation.hasNext() ; ) {
FeatureRelation relation = itFeatureRelation.next();
if (de.FeatureModellingTool.Pattern.ConstantDefinition.isStructRelation(relation)
&& featureLayout.feature.getID().equals(relation.getStartFeature().getID())) {
hasChild = true;
FeatureLayout childLayout = this.featureLayouts.get(relation.getEndFeature().getID());
tmp = caculateLayout(childLayout , xoffset , rowIndex + 1 , widthStep , heightStep);
if (tmp>result)
result = tmp;
minx = minx>childLayout.x ? childLayout.x : minx;