/**
  * Gets the handles of the figure. It returns the normal PolyLineHandles but adds
  * ChangeConnectionHandles at the start and end.
  */
 public HandleEnumeration handles() {
   List handles = CollectionsFactory.current().createList(fPoints.size());
   handles.add(new ChangeConnectionStartHandle(this));
   for (int i = 1; i < fPoints.size() - 1; i++) {
     handles.add(new PolyLineHandle(this, locator(i), i));
   }
   handles.add(new ChangeConnectionEndHandle(this));
   return new HandleEnumerator(handles);
 }
 public DeleteFromDrawingVisitor(Drawing newDrawing) {
   myDeletedFigures = CollectionsFactory.current().createSet();
   setDrawing(newDrawing);
 }