fr.umlv.unitex.undo
Class AddBoxeEdit

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

public class AddBoxeEdit
extends javax.swing.undo.AbstractUndoableEdit

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

Author:
Decreton Julien
See Also:
Serialized Form

Constructor Summary
AddBoxeEdit(GenericGraphBox boxe, java.util.ArrayList boxes, GenericGraphicalZone zone)
          contruct an edit to redo and undo an add boxe action
 
Method Summary
 void redo()
          redo action
 void undo()
          undo action
 
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

AddBoxeEdit

public AddBoxeEdit(GenericGraphBox boxe,
                   java.util.ArrayList boxes,
                   GenericGraphicalZone zone)
contruct an edit to redo and undo an add boxe action

Parameters:
boxe - the boxe to save for the do undo process
boxes - the unit boxes of a graph
zone - the zone where boxes are drawn
Method Detail

undo

public void undo()
undo action

Specified by:
undo in interface javax.swing.undo.UndoableEdit
Overrides:
undo in class javax.swing.undo.AbstractUndoableEdit

redo

public void redo()
redo action

Specified by:
redo in interface javax.swing.undo.UndoableEdit
Overrides:
redo in class javax.swing.undo.AbstractUndoableEdit