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

ding.view
Class ViewChangeEdit

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by ding.view.ViewChangeEdit
All Implemented Interfaces:
Serializable, UndoableEdit

public class ViewChangeEdit
extends AbstractUndoableEdit

A Ding specific undoable edit.

See Also:
Serialized Form

Nested Class Summary
static class ViewChangeEdit.SavedObjs
           
 
Constructor Summary
ViewChangeEdit(DGraphView view, String label)
           
ViewChangeEdit(DGraphView view, ViewChangeEdit.SavedObjs saveObjs, String label)
           
 
Method Summary
 String getPresentationName()
           
 String getRedoPresentationName()
           
 String getUndoPresentationName()
           
 void post()
           
 void redo()
          Applies the new state to the view after it has been undone.
 void undo()
          Applies the original state to the view.
 
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

ViewChangeEdit

public ViewChangeEdit(DGraphView view,
                      String label)

ViewChangeEdit

public ViewChangeEdit(DGraphView view,
                      ViewChangeEdit.SavedObjs saveObjs,
                      String label)
Method Detail

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

www.cytoscape.org