fr.orsay.lri.varna.models
Class VARNAEdits.RemoveBPEdit

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by fr.orsay.lri.varna.models.VARNAEdits.RemoveBPEdit
All Implemented Interfaces:
Serializable, UndoableEdit
Enclosing class:
VARNAEdits

public static class VARNAEdits.RemoveBPEdit
extends AbstractUndoableEdit

See Also:
Serialized Form

Field Summary
private  int _i
           
private  int _j
           
private  ModeleBP _msbp
           
private  VARNAPanel _vp
           
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
VARNAEdits.RemoveBPEdit(int i, int j, ModeleBP msbp, VARNAPanel vp)
           
 
Method Summary
 boolean addEdit(UndoableEdit anEdit)
           
 boolean canRedo()
           
 boolean canUndo()
           
 String getPresentationName()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_msbp

private ModeleBP _msbp

_i

private int _i

_j

private int _j

_vp

private VARNAPanel _vp
Constructor Detail

VARNAEdits.RemoveBPEdit

public VARNAEdits.RemoveBPEdit(int i,
                               int j,
                               ModeleBP msbp,
                               VARNAPanel vp)
Method Detail

undo

public void undo()
          throws CannotUndoException
Specified by:
undo in interface UndoableEdit
Overrides:
undo in class AbstractUndoableEdit
Throws:
CannotUndoException

redo

public void redo()
          throws CannotRedoException
Specified by:
redo in interface UndoableEdit
Overrides:
redo in class AbstractUndoableEdit
Throws:
CannotRedoException

canUndo

public boolean canUndo()
Specified by:
canUndo in interface UndoableEdit
Overrides:
canUndo in class AbstractUndoableEdit

canRedo

public boolean canRedo()
Specified by:
canRedo in interface UndoableEdit
Overrides:
canRedo in class AbstractUndoableEdit

getPresentationName

public String getPresentationName()
Specified by:
getPresentationName in interface UndoableEdit
Overrides:
getPresentationName in class AbstractUndoableEdit

addEdit

public boolean addEdit(UndoableEdit anEdit)
Specified by:
addEdit in interface UndoableEdit
Overrides:
addEdit in class AbstractUndoableEdit