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:
undo
in interfaceUndoableEdit
- Overrides:
undo
in classAbstractUndoableEdit
- Throws:
CannotUndoException
-
redo
- Specified by:
redo
in interfaceUndoableEdit
- Overrides:
redo
in classAbstractUndoableEdit
- Throws:
CannotUndoException
-