public void undo() {
   for (AbstractSelectionRegion<?> region : regions) xyGraph.addRegion(region);
 }