Cytoscape 2.8.0 API

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

Field Summary
protected  String desc
           
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

desc

protected String desc
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

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.