ding.view
Class ViewChangeEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
ding.view.ViewChangeEdit
- All Implemented Interfaces:
- Serializable, UndoableEdit
public class ViewChangeEdit
- extends AbstractUndoableEdit
A Ding specific undoable edit.
- See Also:
- Serialized Form
ViewChangeEdit
public ViewChangeEdit(DGraphView view,
String label)
ViewChangeEdit
public ViewChangeEdit(DGraphView view,
ViewChangeEdit.SavedObjs saveObjs,
String label)
post
public void post()
getPresentationName
public String getPresentationName()
- Specified by:
getPresentationName
in interface UndoableEdit
- Overrides:
getPresentationName
in class AbstractUndoableEdit
- Returns:
- Not sure where this is used.
getRedoPresentationName
public String getRedoPresentationName()
- Specified by:
getRedoPresentationName
in interface UndoableEdit
- Overrides:
getRedoPresentationName
in class AbstractUndoableEdit
- Returns:
- Used in the edit menu.
getUndoPresentationName
public String getUndoPresentationName()
- Specified by:
getUndoPresentationName
in interface UndoableEdit
- Overrides:
getUndoPresentationName
in class AbstractUndoableEdit
- Returns:
- Used in the edit menu.
redo
public void redo()
- Applies the new state to the view after it has been undone.
- Specified by:
redo
in interface UndoableEdit
- Overrides:
redo
in class AbstractUndoableEdit
undo
public void undo()
- Applies the original state to the view.
- Specified by:
undo
in interface UndoableEdit
- Overrides:
undo
in class AbstractUndoableEdit