boolean (final RadComponent component) { if (component instanceof RadAtomicComponent) { if(selectedComponent1.equals(component)){ return true; } if (!FormEditingUtil.isComponentSwitchedInView(component)) { return true; } components.add(component); final JComponent _delegee = component.getDelegee(); final Point p = SwingUtilities.convertPoint( _delegee, new Point(0, 0), rootContainerDelegee ); p.x += _delegee.getWidth() / 2; p.y += _delegee.getHeight() / 2; points.add(p); } return true; }