Class TraceMemento
- java.lang.Object
-
- org.eclipse.nebula.visualization.internal.xygraph.undo.TraceMemento
-
public class TraceMemento extends java.lang.ObjectThe memento to save the properties of a trace.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanantiAliasingprivate intareaAlphaprivate Trace.BaseLinebaseLineprivate booleandrawYErrorInAreaprivate interrorBarCapWidthprivate org.eclipse.swt.graphics.ColorerrorBarColorprivate booleanerrorBarEnabledprivate intlineWidthprivate java.lang.Stringnameprivate intpointSizeprivate Trace.PointStylepointStyleprivate org.eclipse.swt.graphics.ColortraceColorprivate Trace.TraceTypetraceTypeprivate AxisxAxisprivate Trace.ErrorBarTypexErrorBarTypeprivate AxisyAxisprivate Trace.ErrorBarTypeyErrorBarType
-
Constructor Summary
Constructors Constructor Description TraceMemento()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAreaAlpha()Trace.BaseLinegetBaseLine()intgetErrorBarCapWidth()org.eclipse.swt.graphics.ColorgetErrorBarColor()intgetLineWidth()java.lang.StringgetName()intgetPointSize()Trace.PointStylegetPointStyle()org.eclipse.swt.graphics.ColorgetTraceColor()Trace.TraceTypegetTraceType()AxisgetXAxis()Trace.ErrorBarTypegetXErrorBarType()AxisgetYAxis()Trace.ErrorBarTypegetYErrorBarType()booleanisAntiAliasing()booleanisDrawYErrorInArea()booleanisErrorBarEnabled()voidsetAntiAliasing(boolean antiAliasing)voidsetAreaAlpha(int areaAlpha)voidsetBaseLine(Trace.BaseLine baseLine)voidsetDrawYErrorInArea(boolean drawYErrorInArea)voidsetErrorBarCapWidth(int errorBarCapWidth)voidsetErrorBarColor(org.eclipse.swt.graphics.Color errorBarColor)voidsetErrorBarEnabled(boolean errorBarEnabled)voidsetLineWidth(int lineWidth)voidsetName(java.lang.String name)voidsetPointSize(int pointSize)voidsetPointStyle(Trace.PointStyle pointStyle)voidsetTraceColor(org.eclipse.swt.graphics.Color traceColor)voidsetTraceType(Trace.TraceType traceType)voidsetXAxis(Axis axis)voidsetXErrorBarType(Trace.ErrorBarType errorBarType)voidsetYAxis(Axis axis)voidsetYErrorBarType(Trace.ErrorBarType errorBarType)
-
-
-
Field Detail
-
name
private java.lang.String name
-
xAxis
private Axis xAxis
-
yAxis
private Axis yAxis
-
traceColor
private org.eclipse.swt.graphics.Color traceColor
-
traceType
private Trace.TraceType traceType
-
lineWidth
private int lineWidth
-
pointStyle
private Trace.PointStyle pointStyle
-
pointSize
private int pointSize
-
baseLine
private Trace.BaseLine baseLine
-
areaAlpha
private int areaAlpha
-
antiAliasing
private boolean antiAliasing
-
errorBarEnabled
private boolean errorBarEnabled
-
xErrorBarType
private Trace.ErrorBarType xErrorBarType
-
yErrorBarType
private Trace.ErrorBarType yErrorBarType
-
errorBarColor
private org.eclipse.swt.graphics.Color errorBarColor
-
errorBarCapWidth
private int errorBarCapWidth
-
drawYErrorInArea
private boolean drawYErrorInArea
-
-
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
-
getXAxis
public Axis getXAxis()
- Returns:
- the xAxis
-
setXAxis
public void setXAxis(Axis axis)
- Parameters:
axis- the xAxis to set
-
getYAxis
public Axis getYAxis()
- Returns:
- the yAxis
-
setYAxis
public void setYAxis(Axis axis)
- Parameters:
axis- the yAxis to set
-
getTraceColor
public org.eclipse.swt.graphics.Color getTraceColor()
- Returns:
- the traceColor
-
setTraceColor
public void setTraceColor(org.eclipse.swt.graphics.Color traceColor)
- Parameters:
traceColor- the traceColor to set
-
getTraceType
public Trace.TraceType getTraceType()
- Returns:
- the traceType
-
setTraceType
public void setTraceType(Trace.TraceType traceType)
- Parameters:
traceType- the traceType to set
-
getLineWidth
public int getLineWidth()
- Returns:
- the lineWidth
-
setLineWidth
public void setLineWidth(int lineWidth)
- Parameters:
lineWidth- the lineWidth to set
-
getPointStyle
public Trace.PointStyle getPointStyle()
- Returns:
- the pointStyle
-
setPointStyle
public void setPointStyle(Trace.PointStyle pointStyle)
- Parameters:
pointStyle- the pointStyle to set
-
getPointSize
public int getPointSize()
- Returns:
- the pointSize
-
setPointSize
public void setPointSize(int pointSize)
- Parameters:
pointSize- the pointSize to set
-
getBaseLine
public Trace.BaseLine getBaseLine()
- Returns:
- the baseLine
-
setBaseLine
public void setBaseLine(Trace.BaseLine baseLine)
- Parameters:
baseLine- the baseLine to set
-
getAreaAlpha
public int getAreaAlpha()
- Returns:
- the areaAlpha
-
setAreaAlpha
public void setAreaAlpha(int areaAlpha)
- Parameters:
areaAlpha- the areaAlpha to set
-
isAntiAliasing
public boolean isAntiAliasing()
- Returns:
- the antiAliasing
-
setAntiAliasing
public void setAntiAliasing(boolean antiAliasing)
- Parameters:
antiAliasing- the antiAliasing to set
-
isErrorBarEnabled
public boolean isErrorBarEnabled()
- Returns:
- the errorBarEnabled
-
setErrorBarEnabled
public void setErrorBarEnabled(boolean errorBarEnabled)
- Parameters:
errorBarEnabled- the errorBarEnabled to set
-
getXErrorBarType
public Trace.ErrorBarType getXErrorBarType()
- Returns:
- the xErrorBarType
-
setXErrorBarType
public void setXErrorBarType(Trace.ErrorBarType errorBarType)
- Parameters:
errorBarType- the xErrorBarType to set
-
getYErrorBarType
public Trace.ErrorBarType getYErrorBarType()
- Returns:
- the yErrorBarType
-
setYErrorBarType
public void setYErrorBarType(Trace.ErrorBarType errorBarType)
- Parameters:
errorBarType- the yErrorBarType to set
-
getErrorBarColor
public org.eclipse.swt.graphics.Color getErrorBarColor()
- Returns:
- the errorBarColor
-
setErrorBarColor
public void setErrorBarColor(org.eclipse.swt.graphics.Color errorBarColor)
- Parameters:
errorBarColor- the errorBarColor to set
-
getErrorBarCapWidth
public int getErrorBarCapWidth()
- Returns:
- the errorBarCapWidth
-
setErrorBarCapWidth
public void setErrorBarCapWidth(int errorBarCapWidth)
- Parameters:
errorBarCapWidth- the errorBarCapWidth to set
-
isDrawYErrorInArea
public boolean isDrawYErrorInArea()
- Returns:
- the drawYErrorInArea
-
setDrawYErrorInArea
public void setDrawYErrorInArea(boolean drawYErrorInArea)
- Parameters:
drawYErrorInArea- the drawYErrorInArea to set
-
-