RadComponent () { Point location = myContext.getLocation(); List<RadComponent> children = getChildren(); RadComponent lastChild = children.get(children.size() - 1); Rectangle childBounds = lastChild.getBounds(myContext.getArea().getFeedbackLayer()); if (myHorizontal) { if (location.x >= childBounds.getMaxX()) { return lastChild; } return children.get(0); } if (location.y >= childBounds.getMaxY()) { return lastChild; } return children.get(0); }