Class AnnotationMemento
java.lang.Object
org.eclipse.nebula.visualization.internal.xygraph.undo.AnnotationMemento
public class AnnotationMemento
extends java.lang.Object
The memento to save the properties of an annotation
-
Constructor Summary
Constructors Constructor Description AnnotationMemento() -
Method Summary
Modifier and Type Method Description org.eclipse.swt.graphics.ColorgetAnnotationColor()Annotation.CursorLineStylegetCursorLineStyle()org.eclipse.swt.graphics.FontgetFont()java.lang.StringgetName()TracegetTrace()AxisgetXAxis()AxisgetYAxis()booleanisFree()booleanisShowName()booleanisShowPosition()booleanisShowSampleInfo()voidsetAnnotationColor(org.eclipse.swt.graphics.Color annotationColor)voidsetCursorLineStyle(Annotation.CursorLineStyle cursorLineStyle)voidsetFont(org.eclipse.swt.graphics.Font font)voidsetFree(boolean free)voidsetName(java.lang.String name)voidsetShowName(boolean showName)voidsetShowPosition(boolean showPosition)voidsetShowSampleInfo(boolean showSampleInfo)voidsetTrace(Trace trace)voidsetXAxis(Axis xAxis)voidsetYAxis(Axis yAxis)
-
Constructor Details
-
AnnotationMemento
public AnnotationMemento()
-
-
Method Details
-
getName
public java.lang.String getName()- Returns:
- the name
-
setName
public void setName(java.lang.String name)- Parameters:
name- the name to set
-
isFree
public boolean isFree()- Returns:
- the free
-
setFree
public void setFree(boolean free)- Parameters:
free- the free to set
-
getTrace
- Returns:
- the trace
-
setTrace
- Parameters:
trace- the trace to set
-
getAnnotationColor
public org.eclipse.swt.graphics.Color getAnnotationColor()- Returns:
- the annotationColor
-
setAnnotationColor
public void setAnnotationColor(org.eclipse.swt.graphics.Color annotationColor)- Parameters:
annotationColor- the annotationColor to set
-
getFont
public org.eclipse.swt.graphics.Font getFont()- Returns:
- the font
-
setFont
public void setFont(org.eclipse.swt.graphics.Font font)- Parameters:
font- the font to set
-
getCursorLineStyle
- Returns:
- the cursorLineStyle
-
setCursorLineStyle
- Parameters:
cursorLineStyle- the cursorLineStyle to set
-
isShowName
public boolean isShowName()- Returns:
- the showName
-
setShowName
public void setShowName(boolean showName)- Parameters:
showName- the showName to set
-
isShowSampleInfo
public boolean isShowSampleInfo()- Returns:
- the showSampleInfo
-
setShowSampleInfo
public void setShowSampleInfo(boolean showSampleInfo)- Parameters:
showSampleInfo- the showSampleInfo to set
-
isShowPosition
public boolean isShowPosition()- Returns:
- the showPosition
-
setShowPosition
public void setShowPosition(boolean showPosition)- Parameters:
showPosition- the showPosition to set
-
setYAxis
- Parameters:
yAxis- the yAxis to set
-
getYAxis
- Returns:
- the yAxis
-
setXAxis
- Parameters:
xAxis- the xAxis to set
-
getXAxis
- Returns:
- the xAxis
-