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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AnnotationMemento>
annotationMementoList
private java.util.List<AxisMemento>
axisMementoList
private org.eclipse.swt.graphics.Color
plotAreaBackColor
private boolean
showLegend
private boolean
showPlotAreaBorder
private boolean
showTitle
private java.lang.String
Title
private org.eclipse.swt.graphics.Color
titleColor
private org.eclipse.swt.graphics.Font
titleFont
private org.eclipse.swt.graphics.FontData
titleFontData
Add because getTitleFont send a SWTERROR if the receiver is dispose.private java.util.List<TraceMemento>
traceMementoList
private boolean
transparent
-
Constructor Summary
Constructors Constructor Description XYGraphMemento()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAnnotationMemento(AnnotationMemento memento)
void
addAxisMemento(AxisMemento memento)
void
addTraceMemento(TraceMemento memento)
java.util.List<AnnotationMemento>
getAnnotationMementoList()
java.util.List<AxisMemento>
getAxisMementoList()
org.eclipse.swt.graphics.Color
getPlotAreaBackColor()
java.lang.String
getTitle()
org.eclipse.swt.graphics.Color
getTitleColor()
org.eclipse.swt.graphics.Font
getTitleFont()
org.eclipse.swt.graphics.FontData
getTitleFontData()
java.util.List<TraceMemento>
getTraceMementoList()
boolean
isShowLegend()
boolean
isShowPlotAreaBorder()
boolean
isShowTitle()
boolean
isTransparent()
void
setPlotAreaBackColor(org.eclipse.swt.graphics.Color plotAreaBackColor)
void
setShowLegend(boolean showLegend)
void
setShowPlotAreaBorder(boolean showPlotAreaBorder)
void
setShowTitle(boolean showTitle)
void
setTitle(java.lang.String title)
void
setTitleColor(org.eclipse.swt.graphics.Color titleColor)
void
setTitleFont(org.eclipse.swt.graphics.Font titleFont)
void
setTransparent(boolean transparen)
-
-
-
Field Detail
-
Title
private java.lang.String Title
-
titleFont
private org.eclipse.swt.graphics.Font titleFont
-
titleFontData
private org.eclipse.swt.graphics.FontData titleFontData
Add because getTitleFont send a SWTERROR if the receiver is dispose. It is the case when you save the plt file after ask to close CSS.
-
titleColor
private org.eclipse.swt.graphics.Color titleColor
-
plotAreaBackColor
private org.eclipse.swt.graphics.Color plotAreaBackColor
-
showTitle
private boolean showTitle
-
showLegend
private boolean showLegend
-
showPlotAreaBorder
private boolean showPlotAreaBorder
-
transparent
private boolean transparent
-
annotationMementoList
private java.util.List<AnnotationMemento> annotationMementoList
-
axisMementoList
private java.util.List<AxisMemento> axisMementoList
-
traceMementoList
private java.util.List<TraceMemento> traceMementoList
-
-
Method Detail
-
addAnnotationMemento
public void addAnnotationMemento(AnnotationMemento memento)
-
addAxisMemento
public void addAxisMemento(AxisMemento memento)
-
addTraceMemento
public void addTraceMemento(TraceMemento memento)
-
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
public java.util.List<AnnotationMemento> getAnnotationMementoList()
- Returns:
- the annotationMementoList
-
getAxisMementoList
public java.util.List<AxisMemento> getAxisMementoList()
- Returns:
- the axisMementoList
-
getTraceMementoList
public java.util.List<TraceMemento> getTraceMementoList()
- Returns:
- the traceMementoList
-
-