cz.psika.numerist
Class DiagramCanvasMemento

java.lang.Object
  extended by cz.psika.numerist.Memento
      extended by cz.psika.numerist.ItemMemento
          extended by cz.psika.numerist.DiagramCanvasMemento
All Implemented Interfaces:
History, Item, ItemObservable

public class DiagramCanvasMemento
extends ItemMemento

Class saving history status of simple diagram.

Author:
Tomas Psika

Field Summary
 
Fields inherited from class cz.psika.numerist.ItemMemento
id, sourceString, style
 
Constructor Summary
protected DiagramCanvasMemento(Entry entry)
          For saving history of this simple diagram we only need to save characteristics of it's entry.
 
Method Summary
 Entry fetchEntry()
          Get entry.
 
Methods inherited from class cz.psika.numerist.ItemMemento
addObserver, copyId, createMemento, deleteObserver, fetchDiagram, getId, getString, getStyle, notifyObservers, setMemento, setString, setStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagramCanvasMemento

protected DiagramCanvasMemento(Entry entry)
For saving history of this simple diagram we only need to save characteristics of it's entry.

Parameters:
entry - source entry
Method Detail

fetchEntry

public Entry fetchEntry()
Get entry.

Specified by:
fetchEntry in interface Item
Overrides:
fetchEntry in class ItemMemento
Returns:
saved entry characteristics as new Entry instance