fr.umlv.unitex.undo
Class BoxeTextEdit

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

public class BoxeTextEdit
extends javax.swing.undo.AbstractUndoableEdit

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

Author:
Decreton Julien
See Also:
Serialized Form

Constructor Summary
BoxeTextEdit(GenericGraphBox boxe, java.lang.String text, GenericGraphicalZone zone)
          contruct an edit to redo and undo a text edition in a boxe
 
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

BoxeTextEdit

public BoxeTextEdit(GenericGraphBox boxe,
                    java.lang.String text,
                    GenericGraphicalZone zone)
contruct an edit to redo and undo a text edition in a boxe

Parameters:
boxe - the boxe where add the text
text - the text to add in the boxe
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