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
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.swt.graphics.Color
annotationColor
private Annotation.CursorLineStyle
cursorLineStyle
private org.eclipse.swt.graphics.Font
font
private boolean
free
private java.lang.String
name
private boolean
showName
private boolean
showPosition
private boolean
showSampleInfo
private Trace
trace
private Axis
xAxis
private Axis
yAxis
-
Constructor Summary
Constructors Constructor Description AnnotationMemento()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.graphics.Color
getAnnotationColor()
Annotation.CursorLineStyle
getCursorLineStyle()
org.eclipse.swt.graphics.Font
getFont()
java.lang.String
getName()
Trace
getTrace()
Axis
getXAxis()
Axis
getYAxis()
boolean
isFree()
boolean
isShowName()
boolean
isShowPosition()
boolean
isShowSampleInfo()
void
setAnnotationColor(org.eclipse.swt.graphics.Color annotationColor)
void
setCursorLineStyle(Annotation.CursorLineStyle cursorLineStyle)
void
setFont(org.eclipse.swt.graphics.Font font)
void
setFree(boolean free)
void
setName(java.lang.String name)
void
setShowName(boolean showName)
void
setShowPosition(boolean showPosition)
void
setShowSampleInfo(boolean showSampleInfo)
void
setTrace(Trace trace)
void
setXAxis(Axis xAxis)
void
setYAxis(Axis yAxis)
-
-
-
Field Detail
-
name
private java.lang.String name
-
free
private boolean free
-
xAxis
private Axis xAxis
-
yAxis
private Axis yAxis
-
trace
private Trace trace
-
annotationColor
private org.eclipse.swt.graphics.Color annotationColor
-
font
private org.eclipse.swt.graphics.Font font
-
cursorLineStyle
private Annotation.CursorLineStyle cursorLineStyle
-
showName
private boolean showName
-
showSampleInfo
private boolean showSampleInfo
-
showPosition
private boolean showPosition
-
-
Method Detail
-
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
public Trace getTrace()
- Returns:
- the trace
-
setTrace
public void setTrace(Trace trace)
- 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
public Annotation.CursorLineStyle getCursorLineStyle()
- Returns:
- the cursorLineStyle
-
setCursorLineStyle
public void setCursorLineStyle(Annotation.CursorLineStyle cursorLineStyle)
- 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
public void setYAxis(Axis yAxis)
- Parameters:
yAxis
- the yAxis to set
-
getYAxis
public Axis getYAxis()
- Returns:
- the yAxis
-
setXAxis
public void setXAxis(Axis xAxis)
- Parameters:
xAxis
- the xAxis to set
-
getXAxis
public Axis getXAxis()
- Returns:
- the xAxis
-
-