Class FunctionEditor.DefaultEdit

java.lang.Object
javax.swing.undo.AbstractUndoableEdit
org.opensourcephysics.tools.FunctionEditor.DefaultEdit
All Implemented Interfaces:
Serializable, UndoableEdit
Enclosing class:
FunctionEditor

public class FunctionEditor.DefaultEdit extends AbstractUndoableEdit
A class to undo/redo edits.
See Also:
  • Constructor Details

    • DefaultEdit

      public DefaultEdit(int type, Object newVal, int newRow, int newCol, Object prevVal, int prevRow, int prevCol, String name)
      A class to undo/redo edits.
      Parameters:
      type - may be ADD_EDIT, REMOVE_EDIT, NAME_EDIT, or EXPRESSION_EDIT
      newVal - the new object, name or expression
      newRow - the row selected
      newCol - the col selected
      prevVal - the previous object, name or expression
      prevRow - the previous row selected
      prevCol - the previous col selected
      name - the name of the edited object
  • Method Details