fr.umlv.unitex.undo
Class DeleteBoxGroupEdit

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by fr.umlv.unitex.undo.DeleteBoxGroupEdit
All Implemented Interfaces:
java.io.Serializable, javax.swing.undo.UndoableEdit

public class DeleteBoxGroupEdit
extends javax.swing.undo.AbstractUndoableEdit

class uses to save the state of the graph delete a group of boxes

Author:
Decreton Julien
See Also:
Serialized Form

Constructor Summary
DeleteBoxGroupEdit(java.util.ArrayList selectedBoxes, java.util.ArrayList graphBoxes, GenericGraphicalZone zone)
           
 
Method Summary
 void redo()
           
 void undo()
           
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeleteBoxGroupEdit

public DeleteBoxGroupEdit(java.util.ArrayList selectedBoxes,
                          java.util.ArrayList graphBoxes,
                          GenericGraphicalZone zone)
Parameters:
selectedBoxes - the boxes selected before the delete action
graphBoxes - the boxes of the graph
zone - the zone where the graph is drawn
Method Detail

undo

public void undo()
Specified by:
undo in interface javax.swing.undo.UndoableEdit
Overrides:
undo in class javax.swing.undo.AbstractUndoableEdit

redo

public void redo()
Specified by:
redo in interface javax.swing.undo.UndoableEdit
Overrides:
redo in class javax.swing.undo.AbstractUndoableEdit