Sure there is. Any class that (correctly) implements the interface Shape, (like the Polygon class), could be used to detect collisions. Pretty much any shape you can draw.