Cytoscape 2.8.0 API

undo
Class Undo

java.lang.Object
  extended by undo.Undo
Direct Known Subclasses:
CyUndo

public class Undo
extends Object

Rudimentary support for undo. To post an edit to the manager, call Undo.getUndoableEditSupport().postEdit(yourEdit). To handle the edits, you should extend this class and write actions, etc. that use the UndoManager.


Constructor Summary
Undo()
           
 
Method Summary
static UndoableEditSupport getUndoableEditSupport()
          Use this method to get the UndoableEditSupport which you should use to post edits: Undo.getUndoableEditSupport().postEdit(yourEdit).
protected static UndoManager getUndoManager()
          Returns the UndoManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Undo

public Undo()
Method Detail

getUndoManager

protected static UndoManager getUndoManager()
Returns the UndoManager. To preserve encapsulation and to prevent the wrong hands for mucking with your edit stack, don't make this public! Rather, extend the class and use this method with the class and package to set up actions, etc..

Returns:
the UndoManager used for managing the edits.

getUndoableEditSupport

public static UndoableEditSupport getUndoableEditSupport()
Use this method to get the UndoableEditSupport which you should use to post edits: Undo.getUndoableEditSupport().postEdit(yourEdit).

Returns:
the UndoableEditSupport used for posting edits.

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.