fr.umlv.unitex.undo
Class RemoveBoxeEdit

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

public class RemoveBoxeEdit
extends javax.swing.undo.AbstractUndoableEdit

class uses to save the state of the graph before remove a boxe

Author:
Decreton Julien
See Also:
Serialized Form

Constructor Summary
RemoveBoxeEdit(GenericGraphBox boxe, java.util.ArrayList boxes, 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

RemoveBoxeEdit

public RemoveBoxeEdit(GenericGraphBox boxe,
                      java.util.ArrayList boxes,
                      GenericGraphicalZone zone)
Parameters:
boxe - the boxe to remove
boxes - the boxes of the graph
zone - the zone where remove the boxe
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