y2 += view.getYCellSize();
return new Rectangle(x1, y1, x2, y2);
}
private boolean checkBoundingBox(int x, int y, int index) {
IconElement icon = (IconElement) view.getModel().getElementAt(index);
int xcell = view.getXCellSize(), ycell = view.getYCellSize();
int iconWidth = icon.getIcon().getIconWidth();
int iconHeight = icon.getIcon().getIconHeight();
int spacing = view.getIconTextSpacing();
int stringWidth = metrics.stringWidth(icon.getText());
int center = ycell / 2 - (textHeight + iconHeight + spacing) / 2;
x = x % xcell;
y = y % ycell;
if (x > (xcell / 2 - iconWidth / 2)