Handling Mouse Events (cont)
class MyMouseHandler extends MouseAdapter
implements MouseMotionListener {
public void mousePressed (MouseEvent e) {
for (Enumeration theEnum =
theEnum.hasMoreElements();) {
selectedLS = (LineSegmentD)theEnum.nextElement();
selectedLS.getHit(e.getX(), e.getY());
if (selectedPoint != null) break;