org.jgraph.graph.GraphUndoManager Class Reference

List of all members.

Public Member Functions

synchronized boolean canUndo (Object source)
synchronized boolean canRedo (Object source)
void undo (Object source)
void redo (Object source)

Protected Member Functions

UndoableEdit editToBeUndone (Object source)
UndoableEdit nextEditToBeUndone (UndoableEdit current)
UndoableEdit editToBeRedone (Object source)
UndoableEdit nextEditToBeRedone (UndoableEdit current)

Detailed Description

An UndoManager that may be shared among multiple GraphLayoutCache's.

Version:
1.0 1/1/02
Author:
Gaudenz Alder


Member Function Documentation

synchronized boolean org.jgraph.graph.GraphUndoManager.canRedo Object  source  ) 
 

Overridden to preserve usual semantics: returns true if a redo operation would be successful now for the given view, false otherwise

synchronized boolean org.jgraph.graph.GraphUndoManager.canUndo Object  source  ) 
 

Overridden to preserve usual semantics: returns true if an undo operation would be successful now for the given view, false otherwise

UndoableEdit org.jgraph.graph.GraphUndoManager.editToBeRedone Object  source  )  [protected]
 

UndoableEdit org.jgraph.graph.GraphUndoManager.editToBeUndone Object  source  )  [protected]
 

UndoableEdit org.jgraph.graph.GraphUndoManager.nextEditToBeRedone UndoableEdit  current  )  [protected]
 

Returns the the next significant edit wrt to current to be redone if redo is called. May return null.

UndoableEdit org.jgraph.graph.GraphUndoManager.nextEditToBeUndone UndoableEdit  current  )  [protected]
 

Returns the the next significant edit wrt to current to be undone if undo is called. May return null.

void org.jgraph.graph.GraphUndoManager.redo Object  source  ) 
 

If this UndoManager is inProgress, redoes the last significant UndoableEdit with respect to source or after, and all insignificant edits up to it. Updates indexOfNextAdd accordingly.

If not inProgress, indexOfNextAdd is ignored and super's routine is called.

void org.jgraph.graph.GraphUndoManager.undo Object  source  ) 
 

If this UndoManager is inProgress, undo the last significant UndoableEdit wrt to source, and all insignificant edits back to it. Updates indexOfNextAdd accordingly.

If not inProgress, indexOfNextAdd is ignored and super's routine is called.

See also:
UndoManager.undo


The documentation for this class was generated from the following file:
Generated on Sun May 28 19:13:16 2006 for Digimod by  doxygen 1.4.6-NO