Added a contains function to the elements.  Found out that the Line2D.contains() always returns false so I'm using the bounding box.
changed comment