Class XYGraphMemento
java.lang.Object
org.eclipse.nebula.visualization.internal.xygraph.undo.XYGraphMemento
public class XYGraphMemento
extends java.lang.Object
The memento to hold the properties of an XYGraph, so to make the operation on
XYGraph undoable.
-
Constructor Summary
Constructors Constructor Description XYGraphMemento() -
Method Summary
Modifier and Type Method Description voidaddAnnotationMemento(AnnotationMemento memento)voidaddAxisMemento(AxisMemento memento)voidaddTraceMemento(TraceMemento memento)java.util.List<AnnotationMemento>getAnnotationMementoList()java.util.List<AxisMemento>getAxisMementoList()org.eclipse.swt.graphics.ColorgetPlotAreaBackColor()java.lang.StringgetTitle()org.eclipse.swt.graphics.ColorgetTitleColor()org.eclipse.swt.graphics.FontgetTitleFont()org.eclipse.swt.graphics.FontDatagetTitleFontData()java.util.List<TraceMemento>getTraceMementoList()booleanisShowLegend()booleanisShowPlotAreaBorder()booleanisShowTitle()booleanisTransparent()voidsetPlotAreaBackColor(org.eclipse.swt.graphics.Color plotAreaBackColor)voidsetShowLegend(boolean showLegend)voidsetShowPlotAreaBorder(boolean showPlotAreaBorder)voidsetShowTitle(boolean showTitle)voidsetTitle(java.lang.String title)voidsetTitleColor(org.eclipse.swt.graphics.Color titleColor)voidsetTitleFont(org.eclipse.swt.graphics.Font titleFont)voidsetTransparent(boolean transparen)
-
Constructor Details
-
XYGraphMemento
public XYGraphMemento()
-
-
Method Details
-
addAnnotationMemento
-
addAxisMemento
-
addTraceMemento
-
getTitle
public java.lang.String getTitle()- Returns:
- the title
-
setTitle
public void setTitle(java.lang.String title)- Parameters:
title- the title to set
-
getTitleFont
public org.eclipse.swt.graphics.Font getTitleFont()- Returns:
- the titleFont
-
setTitleFont
public void setTitleFont(org.eclipse.swt.graphics.Font titleFont)- Parameters:
titleFont- the titleFont to set
-
getTitleFontData
public org.eclipse.swt.graphics.FontData getTitleFontData() -
getTitleColor
public org.eclipse.swt.graphics.Color getTitleColor()- Returns:
- the titleColor
-
setTitleColor
public void setTitleColor(org.eclipse.swt.graphics.Color titleColor)- Parameters:
titleColor- the titleColor to set
-
getPlotAreaBackColor
public org.eclipse.swt.graphics.Color getPlotAreaBackColor()- Returns:
- the plotAreaBackColor
-
setPlotAreaBackColor
public void setPlotAreaBackColor(org.eclipse.swt.graphics.Color plotAreaBackColor)- Parameters:
plotAreaBackColor- the plotAreaBackColor to set
-
isShowTitle
public boolean isShowTitle()- Returns:
- the showTitle
-
setShowTitle
public void setShowTitle(boolean showTitle)- Parameters:
showTitle- the showTitle to set
-
isShowLegend
public boolean isShowLegend()- Returns:
- the showLegend
-
setShowLegend
public void setShowLegend(boolean showLegend)- Parameters:
showLegend- the showLegend to set
-
isShowPlotAreaBorder
public boolean isShowPlotAreaBorder()- Returns:
- the showPlotAreaBorder
-
setShowPlotAreaBorder
public void setShowPlotAreaBorder(boolean showPlotAreaBorder)- Parameters:
showPlotAreaBorder- the showPlotAreaBorder to set
-
isTransparent
public boolean isTransparent()- Returns:
- the transparen
-
setTransparent
public void setTransparent(boolean transparen)- Parameters:
transparen- the transparen to set
-
getAnnotationMementoList
- Returns:
- the annotationMementoList
-
getAxisMementoList
- Returns:
- the axisMementoList
-
getTraceMementoList
- Returns:
- the traceMementoList
-