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

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

public static class VARNAEdits.SingleBaseMoveEdit
extends AbstractUndoableEdit

See Also:
Serialized Form

Field Summary
private  int _index
           
private  double _nx
           
private  double _ny
           
private  double _ox
           
private  double _oy
           
private  VARNAPanel _vp
           
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
VARNAEdits.SingleBaseMoveEdit(int index, double nx, double ny, 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

_index

private int _index

_ox

private double _ox

_oy

private double _oy

_nx

private double _nx

_ny

private double _ny

_vp

private VARNAPanel _vp
Constructor Detail

VARNAEdits.SingleBaseMoveEdit

public VARNAEdits.SingleBaseMoveEdit(int index,
                                     double nx,
                                     double ny,
                                     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