cytoscape.util.undo
Class CyAbstractEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
cytoscape.util.undo.CyAbstractEdit
- All Implemented Interfaces:
- Serializable, UndoableEdit
public abstract class CyAbstractEdit
- extends AbstractUndoableEdit
A small convenience class that can be used to create new edits. All
you should have to do is implement the undo() and redo() methods. The
benefit is that you don't need to worry about setting up names.
- See Also:
- Serialized Form
CyAbstractEdit
public CyAbstractEdit(String desc)
getPresentationName
public String getPresentationName()
- Specified by:
getPresentationName
in interface UndoableEdit
- Overrides:
getPresentationName
in class AbstractUndoableEdit
getRedoPresentationName
public String getRedoPresentationName()
- Specified by:
getRedoPresentationName
in interface UndoableEdit
- Overrides:
getRedoPresentationName
in class AbstractUndoableEdit
getUndoPresentationName
public String getUndoPresentationName()
- Specified by:
getUndoPresentationName
in interface UndoableEdit
- Overrides:
getUndoPresentationName
in class AbstractUndoableEdit
undo
public void undo()
- Specified by:
undo
in interface UndoableEdit
- Overrides:
undo
in class AbstractUndoableEdit
redo
public void redo()
- Specified by:
redo
in interface UndoableEdit
- Overrides:
redo
in class AbstractUndoableEdit