Package org.opensourcephysics.tools
Class DataToolTab.ShiftEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
org.opensourcephysics.tools.DataToolTab.ShiftEdit
- All Implemented Interfaces:
Serializable,UndoableEdit
- Enclosing class:
- DataToolTab
A class to undo/redo origin shift edits.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
Constructor Details
-
ShiftEdit
Contructor.- Parameters:
colName- the column names {xCol, yCol}newShift- the new shift values {xShift, yShift}prevShift- the previous shift values {xShift, yShift}
-
-
Method Details
-
undo
- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classAbstractUndoableEdit- Throws:
CannotUndoException
-
redo
- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classAbstractUndoableEdit- Throws:
CannotUndoException
-