public void deselectAllSegments(){
  while (!selectedSegments.isEmpty()) {
    deselectSegment(selectedSegments.get(selectedSegments.size() - 1));
  }
}

public void deselectAllSegments ( ) { while ( ! selectedSegments . isEmpty ( ) ) { deselectSegment ( selectedSegments . get ( selectedSegments . size ( ) - 1 ) ) ; } }
deselect all currently selected segments
