if (ChainBuilderAgent.DEBUG) { end = System.currentTimeMillis()-start; System.err.println("time for adjusting size.."+end); }
	public void layoutContents() {		// the current chain				LayoutChainData chain;		PaletteChainView view;				Collection chains = dataManager.getChains();		ArrayList views = buildChainViews(chains);				int num = views.size();				// The display should be roughly square, 		// in terms of the number of rows vs. # of columns		rowSize = (int) Math.floor(Math.sqrt(num));				count=0;		// draw each of them.		Iterator iter = views.iterator();		while (iter.hasNext()) {			view = (PaletteChainView) iter.next();			ChainBox box = buildChain(view);			if (box != null)  {				placeChain(box);			}		}		if (x > maxRowWidth) {			maxRowWidth = x;		}		// fix up the last row.		row.setHeight(rowHeight);				rows.add(row);		adjustSizes();	}