question: boolean ensureProcessSizeFits ( final ExecutionUnit process , final Rectangle2D rect ) { Dimension processSize = model . getProcessSize ( process ) ; if ( processSize == null ) { return false ; } if ( rect == null ) { return false ; } boolean needsResize = false ; double processWidth = processSize . getWidth ( ) * ( 1 / model . getZoomFactor ( ) ) ; double processHeight = processSize . getHeight ( ) * ( 1 / model . getZoomFactor ( ) ) ; double width = processWidth ; double height = processHeight ; if ( processSize != null ) { if ( processWidth < rect . getMaxX ( ) + ProcessDrawer . GRID_X_OFFSET ) { double diff = rect . getMaxX ( ) + ProcessDrawer . GRID_X_OFFSET - processWidth ; if ( diff > ProcessDrawer . GRID_X_OFFSET ) { width += diff ; } else { width += ProcessDrawer . GRID_X_OFFSET ; } needsResize = true ; } if ( processHeight < rect . getMaxY ( ) + ProcessDrawer . GRID_Y_OFFSET ) { double diff = rect . getMaxY ( ) + ProcessDrawer . GRID_Y_OFFSET - processHeight ; if ( diff > ProcessDrawer . GRID_Y_OFFSET ) { height += diff ; } else { height += ProcessDrawer . GRID_Y_OFFSET ; } needsResize = true ; } if ( needsResize ) { model . setProcessWidth ( process , width ) ; model . setProcessHeight ( process , height ) ; balance ( ) ; model . fireProcessSizeChanged ( ) ; return true ; } } return false ; }
target:  Increases the process size if necessary for the given operator.