Cytoscape 2.8.0 API

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
           
 
Field Summary
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
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.
protected  void saveNewPositions()
           
protected  void saveOldPositions()
           
 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
clone, equals, finalize, 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

saveOldPositions

protected void saveOldPositions()

saveNewPositions

protected void saveNewPositions()

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

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.