if (ChainBuilderAgent.DEBUG) {
if (ChainBuilderAgent.DEBUG >3) {
	private void scaleAreas(ArrayList views) {		PaletteChainView view;				Collections.sort(views);		/*		// get smallest area		PaletteChainView smallest= (PaletteChainView) views.get(0);		double logSmallestArea = Math.log(smallest.getArea());		double logArea;		double ratio;		double newArea;		double scale;		Iterator iter = views.iterator();						iter = views.iterator();		while (iter.hasNext()) {			view = (PaletteChainView) iter.next();			logArea = Math.log(view.getArea());			ratio = 3*logArea/logSmallestArea;			newArea = smallest.getArea()*ratio;			scale = newArea/view.getArea();			view.setScale(scale);			System.err.println("\nchain..."+view.getChain().getName());			System.err.println("chain width is "+view.getWidth());			System.err.println(" scale is "+scale);			double newWidth = scale*view.getWidth();			System.err.println(" scaled width is "+newWidth);		}*/		//		 get largest area		PaletteChainView largest= (PaletteChainView) views.get(views.size()-1);		if (ChainBuilderAgent.DEBUG) {			System.err.println("largest chain is "+largest.getChain().getName()+					", area is "+largest.getArea());			System.err.println("largest width is "+largest.getWidth()+","+largest.getHeight());		}				double logLargestArea = Math.log(largest.getArea());		double logArea;		double ratio;		double newArea;		double scale;		Iterator iter = views.iterator();						iter = views.iterator();		while (iter.hasNext()) {			view = (PaletteChainView) iter.next();			logArea = Math.log(view.getArea());			ratio = logArea/logLargestArea;			newArea = largest.getArea()*ratio;			scale = newArea/view.getArea();			view.setScale(scale);			if (ChainBuilderAgent.DEBUG) {				System.err.println("\nchain..."+view.getChain().getName());				System.err.println("original area is "+view.getArea());				System.err.println("chain width is "+view.getWidth());				System.err.println(" scale is "+scale);			}			double newWidth = scale*view.getWidth();			if (ChainBuilderAgent.DEBUG) {				System.err.println(" scaled width is "+newWidth);				System.err.println("new area is "+newArea);			}		}	}