UndoRedo V1.2
by Matthew Ford
2005/06/27

au.com.forward.undoRedo
Class UndoRedoManager.Frame

java.lang.Object
  extended by au.com.forward.undoRedo.UndoRedoManager.Frame
Enclosing class:
UndoRedoManager

protected class UndoRedoManager.Frame
extends java.lang.Object

This class hold the information needed to reset the UndoRedo tree to some prevous state


Constructor Summary
protected UndoRedoManager.Frame(UndoRedoTreeNode rootNode)
          Frame constructor.
 
Method Summary
 UndoRedoTreeNode getPostTreeRootNode()
           
 UndoRedoTreeNode getPreTreeRootNode()
          Reconstucts the original tree from the rootTree and the tail
It also resets the undo flag on each cloned node.
 java.lang.String toString()
          String representation of the postTree for this Frame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UndoRedoManager.Frame

protected UndoRedoManager.Frame(UndoRedoTreeNode rootNode)
Frame constructor.

Parameters:
rootNode - a shallow clone of the original tree.
Method Detail

getPreTreeRootNode

public UndoRedoTreeNode getPreTreeRootNode()
Reconstucts the original tree from the rootTree and the tail
It also resets the undo flag on each cloned node. First set all branch nodes to hasBeenDone false and then set all the trunk nodes to hasBeenDone true

Returns:
- the new root node for the undo/redo tree

getPostTreeRootNode

public UndoRedoTreeNode getPostTreeRootNode()

toString

public java.lang.String toString()
String representation of the postTree for this Frame

Overrides:
toString in class java.lang.Object
Returns:
the postTree for this frame

©2005, Forward Computing and Control Pty. Ltd
ACN 003 669 994   NSW Australia
All Rights Reserved.