private void adjustChildrenToGroupChange(){
  int index=0;
  DecimalRectangle tempBounds;
  for (  MathObject mathObj : getObjects()) {
    tempBounds=objectBounds.get(index);
    mathObj.setxPos(getxPos() + (int)Math.round(tempBounds.getX() * getWidth()));
    mathObj.setyPos(getyPos() + (int)Math.round(tempBounds.getY() * getHeight()));
    mathObj.setWidth((int)Math.round(tempBounds.getWidth() * getWidth()));
    mathObj.setHeight((int)Math.round(tempBounds.getHeight() * getHeight()));
    if (mathObj.getWidth() == 0) {
      mathObj.setWidth(1);
    }
    if (mathObj.getHeight() == 0) {
      mathObj.setHeight(1);
    }
    index++;
  }
}

private void adjustChildrenToGroupChange ( ) { int index = 0 ; DecimalRectangle tempBounds ; for ( MathObject mathObj : getObjects ( ) ) { tempBounds = objectBounds . get ( index ) ; mathObj . setxPos ( getxPos ( ) + ( int ) Math . round ( tempBounds . getX ( ) * getWidth ( ) ) ) ; mathObj . setyPos ( getyPos ( ) + ( int ) Math . round ( tempBounds . getY ( ) * getHeight ( ) ) ) ; mathObj . setWidth ( ( int ) Math . round ( tempBounds . getWidth ( ) * getWidth ( ) ) ) ; mathObj . setHeight ( ( int ) Math . round ( tempBounds . getHeight ( ) * getHeight ( ) ) ) ; if ( mathObj . getWidth ( ) == 0 ) { mathObj . setWidth ( 1 ) ; } if ( mathObj . getHeight ( ) == 0 ) { mathObj . setHeight ( 1 ) ; } index ++ ; } }
this method is sued to move or resize all of the child object in a group after a corresponding change to the group is made . this is not a method for adjusting the group size after child getobjects ( ) have been modified and possibly been moved outside of the group .
