Class XYGraphMementoUtil
java.lang.Object
org.eclipse.nebula.visualization.internal.xygraph.undo.XYGraphMementoUtil
public class XYGraphMementoUtil
extends java.lang.Object
Utility to manage XYGraphMemento create, save and restore functions These
functions are used by XYGraphConfigCommand and XYGraphConfigDialog
-
Constructor Summary
Constructors Constructor Description XYGraphMementoUtil()
-
Method Summary
Modifier and Type Method Description static XYGraphMemento
createEmptyMemento(IXYGraph xyGraph)
Creates an empty memento given a XYGraphstatic XYGraphMemento
createMemento(IXYGraph xyGraph)
Creates a memento given a XYGraphstatic void
restoreXYGraphPropsFromMemento(IXYGraph xyGraph, XYGraphMemento memento)
Restores the XYGraph props from the given mementostatic void
saveXYGraphPropsToMemento(IXYGraph xyGraph, XYGraphMemento memento)
Saves props to the given memento
-
Constructor Details
-
XYGraphMementoUtil
public XYGraphMementoUtil()
-
-
Method Details
-
createEmptyMemento
Creates an empty memento given a XYGraph- Parameters:
xyGraph
- the graph for which an empty memento is created- Returns:
- a XYGraph memento
-
createMemento
Creates a memento given a XYGraph- Parameters:
xyGraph
- the graph for which the memento is created- Returns:
- the memento created
-
saveXYGraphPropsToMemento
Saves props to the given memento- Parameters:
xyGraph
- the graphmemento
- memento used to save props
-
restoreXYGraphPropsFromMemento
Restores the XYGraph props from the given memento- Parameters:
xyGraph
- the graphmemento
- memento from where to restore graph props
-