/* (non-Javadoc) * @see streamit.eclipse.debugger.graph.IStream#setHorizontalLocation(org.eclipse.draw2d.geometry.Point, int, int) */ public int setHorizontalLocation( int currentHeight, boolean stretchTopChannel, boolean stretchBottomChannel, int stretchHeight, int currentWidth) { Dimension topSize = fTopChannel.getSize(); Dimension pipelineSize = getSize(); Dimension bottomSize = fBottomChannel.getSize(); // expand channels if (stretchTopChannel) { topSize.height = stretchHeight - pipelineSize.height - bottomSize.height; fTopChannel.setSize(topSize); } if (stretchBottomChannel) { bottomSize.height = stretchHeight - pipelineSize.height - topSize.height; fBottomChannel.setSize(bottomSize); } setVerticalLocation(new Point(currentWidth + pipelineSize.width / 2, currentHeight), 0); currentWidth = currentWidth + pipelineSize.width + IStreamItGraphConstants.MARGIN / 2; return currentWidth; }