fr.umlv.unitex.undo
Class BoxeGroupTextEdit

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

public class BoxeGroupTextEdit
extends javax.swing.undo.AbstractUndoableEdit

class uses to save the state of the graph before a boxes' text edit

Author:
Decreton Julien
See Also:
Serialized Form

Constructor Summary
BoxeGroupTextEdit(java.util.ArrayList selectedBoxes, java.lang.String s, GenericGraphicalZone zone)
          contruct an edit to redo and undo a boxes' text edition
 
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

BoxeGroupTextEdit

public BoxeGroupTextEdit(java.util.ArrayList selectedBoxes,
                         java.lang.String s,
                         GenericGraphicalZone zone)
contruct an edit to redo and undo a boxes' text edition

Parameters:
selectedBoxes - selected boxes befores the boxes' text edit
s - the text to add in all the boxes
zone - the zone where boxes are 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