void updateExtensionButtons(){
  for (  ExtensionButton button : subprocessExtensionButtons) {
    int subprocessIndex=button.getSubprocessIndex();
    int buttonSize=button.getWidth();
    int gap=2 * ProcessDrawer.WALL_WIDTH;
    if (subprocessIndex >= 0) {
      Point location=ProcessDrawUtils.convertToAbsoluteProcessPoint(new Point(0,0),subprocessIndex,model);
      int height=(int)model.getProcessHeight(model.getProcess(subprocessIndex));
      int width=(int)model.getProcessWidth(model.getProcess(subprocessIndex));
      button.setBounds(location.x + width - buttonSize - gap - (button.isAdd() ? 0 : buttonSize),location.y + height - gap - buttonSize,buttonSize,buttonSize);
    }
 else {
      Point location=ProcessDrawUtils.convertToAbsoluteProcessPoint(new Point(0,0),0,model);
      int height=(int)model.getProcessHeight(model.getProcess(0));
      button.setBounds(location.x + gap,location.y + height - gap - buttonSize,buttonSize,buttonSize);
    }
  }
}

void updateExtensionButtons ( ) { for ( ExtensionButton button : subprocessExtensionButtons ) { int subprocessIndex = button . getSubprocessIndex ( ) ; int buttonSize = button . getWidth ( ) ; int gap = 2 * ProcessDrawer . WALL_WIDTH ; if ( subprocessIndex >= 0 ) { Point location = ProcessDrawUtils . convertToAbsoluteProcessPoint ( new Point ( 0 , 0 ) , subprocessIndex , model ) ; int height = ( int ) model . getProcessHeight ( model . getProcess ( subprocessIndex ) ) ; int width = ( int ) model . getProcessWidth ( model . getProcess ( subprocessIndex ) ) ; button . setBounds ( location . x + width - buttonSize - gap - ( button . isAdd ( ) ? 0 : buttonSize ) , location . y + height - gap - buttonSize , buttonSize , buttonSize ) ; } else { Point location = ProcessDrawUtils . convertToAbsoluteProcessPoint ( new Point ( 0 , 0 ) , 0 , model ) ; int height = ( int ) model . getProcessHeight ( model . getProcess ( 0 ) ) ; button . setBounds ( location . x + gap , location . y + height - gap - buttonSize , buttonSize , buttonSize ) ; } } }
updates location and size of the extension buttons .
