public class XYGraphMementoUtil
extends java.lang.Object
Constructor and Description |
---|
XYGraphMementoUtil() |
Modifier and Type | Method and Description |
---|---|
static XYGraphMemento |
createEmptyMemento(IXYGraph xyGraph)
Creates an empty memento given a XYGraph
|
static XYGraphMemento |
createMemento(IXYGraph xyGraph)
Creates a memento given a XYGraph
|
static void |
restoreXYGraphPropsFromMemento(IXYGraph xyGraph,
XYGraphMemento memento)
Restores the XYGraph props from the given memento
|
static void |
saveXYGraphPropsToMemento(IXYGraph xyGraph,
XYGraphMemento memento)
Saves props to the given memento
|
public static XYGraphMemento createEmptyMemento(IXYGraph xyGraph)
xyGraph
- the graph for which an empty memento is createdpublic static XYGraphMemento createMemento(IXYGraph xyGraph)
xyGraph
- the graph for which the memento is createdpublic static void saveXYGraphPropsToMemento(IXYGraph xyGraph, XYGraphMemento memento)
xyGraph
- the graphmemento
- memento used to save propspublic static void restoreXYGraphPropsFromMemento(IXYGraph xyGraph, XYGraphMemento memento)
xyGraph
- the graphmemento
- memento from where to restore graph props