Class XYGraphMementoUtil
- java.lang.Object
-
- org.eclipse.nebula.visualization.internal.xygraph.undo.XYGraphMementoUtil
-
public class XYGraphMementoUtil extends java.lang.ObjectUtility to manage XYGraphMemento create, save and restore functions These functions are used by XYGraphConfigCommand and XYGraphConfigDialog
-
-
Constructor Summary
Constructors Constructor Description XYGraphMementoUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XYGraphMementocreateEmptyMemento(IXYGraph xyGraph)Creates an empty memento given a XYGraphstatic XYGraphMementocreateMemento(IXYGraph xyGraph)Creates a memento given a XYGraphprivate static voidrestoreAnnotationPropsFromMemento(Annotation annotation, AnnotationMemento memento)private static voidrestoreAxisPropsFromMemento(Axis axis, AxisMemento memento)private static voidrestoreTracePropsFromMemento(Trace trace, TraceMemento memento)static voidrestoreXYGraphPropsFromMemento(IXYGraph xyGraph, XYGraphMemento memento)Restores the XYGraph props from the given mementoprivate static voidsaveAnnotationPropsToMemento(Annotation annotation, AnnotationMemento memento)private static voidsaveAxisPropsToMemento(Axis axis, AxisMemento memento)private static voidsaveTracePropsToMemento(Trace trace, TraceMemento memento)static voidsaveXYGraphPropsToMemento(IXYGraph xyGraph, XYGraphMemento memento)Saves props to the given memento
-
-
-
Method Detail
-
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 graphmemento- 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 graphmemento- memento from where to restore graph props
-
saveAnnotationPropsToMemento
private static void saveAnnotationPropsToMemento(Annotation annotation, AnnotationMemento memento)
-
restoreAnnotationPropsFromMemento
private static void restoreAnnotationPropsFromMemento(Annotation annotation, AnnotationMemento memento)
-
saveAxisPropsToMemento
private static void saveAxisPropsToMemento(Axis axis, AxisMemento memento)
-
restoreAxisPropsFromMemento
private static void restoreAxisPropsFromMemento(Axis axis, AxisMemento memento)
-
saveTracePropsToMemento
private static void saveTracePropsToMemento(Trace trace, TraceMemento memento)
-
restoreTracePropsFromMemento
private static void restoreTracePropsFromMemento(Trace trace, TraceMemento memento)
-
-