String (final RadContainer container, final Point location) { if (location == null) { return BorderLayout.CENTER; } Dimension size = container.getDelegee().getSize(); if (location.x < size.width / 3) { return BorderLayout.WEST; } if (location.y < size.height / 3) { return BorderLayout.NORTH; } if (location.x > size.width * 2 / 3) { return BorderLayout.EAST; } if (location.y > size.height * 2 / 3) { return BorderLayout.SOUTH; } return BorderLayout.CENTER; }