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 Details

  • Method Details

    • createEmptyMemento

      public static XYGraphMemento createEmptyMemento​(IXYGraph xyGraph)
      Creates an empty memento given a XYGraph
      Parameters:
      xyGraph - the graph for which an empty memento is created
      Returns:
      a XYGraph memento
    • createMemento

      public static XYGraphMemento createMemento​(IXYGraph xyGraph)
      Creates a memento given a XYGraph
      Parameters:
      xyGraph - the graph for which the memento is created
      Returns:
      the memento created
    • saveXYGraphPropsToMemento

      public static void saveXYGraphPropsToMemento​(IXYGraph xyGraph, XYGraphMemento memento)
      Saves props to the given memento
      Parameters:
      xyGraph - the graph
      memento - memento used to save props
    • restoreXYGraphPropsFromMemento

      public static void restoreXYGraphPropsFromMemento​(IXYGraph xyGraph, XYGraphMemento memento)
      Restores the XYGraph props from the given memento
      Parameters:
      xyGraph - the graph
      memento - memento from where to restore graph props