classes.main
Class Memento

java.lang.Object
  extended by classes.main.Memento

public class Memento
extends java.lang.Object

Stores the internal state of the objects in the command container class

Version:
1.0, 03-Apr-07
Author:
Prathab, Mukesh

Constructor Summary
Memento()
           
 
Method Summary
 IShape getState()
          Returns the previous state (undo operation)
 void setState(IShape lastCreatedShape)
          Set the current buffer state
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Memento

public Memento()
Method Detail

setState

public void setState(IShape lastCreatedShape)
Set the current buffer state

Parameters:
lastCreatedShape - last created IShape object

getState

public IShape getState()
Returns the previous state (undo operation)

Returns:
stored IShape object