if (vo instanceof SelectableComponents) { if (((SelectableComponents)vo).selectComponentsCheck(x1, y1, x2, y2)) anyNew = true; }
public boolean selectComponentsCheck(int x1, int y1, int x2, int y2) {	int t;	if (x1>x2)		{ t=x1; x1=x2; x2=t; }	if (y1>y2)		{ t=y1; y1=y2; y2=t; }	ViewState view = ViewState.getInstance();	boolean anyNew = false;		Enumeration e = subObjectsV.elements();	VisibleObject vo;	while (e.hasMoreElements()) {		vo = (VisibleObject)(e.nextElement());		if ((vo instanceof Selectable) && 			 (vo.intersects(x1, y1, x2, y2)!=null)) {				if (view.setAsSelected(vo)) anyNew = true;		}	}	return anyNew;}