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

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

public static class VARNAEdits.BasesShiftEdit
extends AbstractUndoableEdit

See Also:
Serialized Form

Field Summary
private  double _dx
           
private  double _dy
           
private  ArrayList<Integer> _indices
           
private  VARNAPanel _vp
           
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
VARNAEdits.BasesShiftEdit(ArrayList<Integer> indices, double dx, double dy, VARNAPanel p)
           
 
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

_indices

private ArrayList<Integer> _indices

_dx

private double _dx

_dy

private double _dy

_vp

private VARNAPanel _vp
Constructor Detail

VARNAEdits.BasesShiftEdit

public VARNAEdits.BasesShiftEdit(ArrayList<Integer> indices,
                                 double dx,
                                 double dy,
                                 VARNAPanel p)
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