Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.util.undo
Class CyAbstractEdit

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by 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

Constructor Summary
CyAbstractEdit(String desc)
           
 
Method Summary
 String getPresentationName()
           
 String getRedoPresentationName()
           
 String getUndoPresentationName()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, isSignificant, replaceEdit, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CyAbstractEdit

public CyAbstractEdit(String desc)
Method Detail

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

www.cytoscape.org