maxX = Math.max(maxX, shape.getBounds().x + shape.getBounds().width);
maxY = Math.max(maxY, shape.getBounds().y + shape.getBounds().height);
for (RectangularShape s: componentShapes)
{
if ( shape.intersects(s.getBounds2D()))
componentIntersecting = true;
}
componentShapes.add(shape);
}