panToAbs(new java.awt.geom.Point2D.Double(x, y));
if(DEBUG) {System.out.println("Centering to " + x + "," + y);} Point2D p_new = new Point2D.Double(x, y);   if(_animateLayout) { animatePanAndZoomToAbs(p_new, 1.0, 1000); } else {       animatePanAndZoomToAbs(p_new, 1.0, 20); }  if(_enforceBounds) {  }
	public void doCenterLayout() {		if(_empty) {			return;		}				int ct = 0;		double x = 0, y = 0;		Iterator nodeIter = _registry.getNodeItems();		while ( nodeIter.hasNext() ) {			VisualItem item = (VisualItem) nodeIter.next();			x += item.getLocation().getX();			y += item.getLocation().getY();			ct++;		}		x = x / (double) ct;		y = y / (double) ct;		panToAbs(new java.awt.geom.Point2D.Double(x, y));		repaint();	}