Class TraceMemento
java.lang.Object
org.eclipse.nebula.visualization.internal.xygraph.undo.TraceMemento
public class TraceMemento
extends java.lang.Object
The memento to save the properties of a trace.
-
Constructor Summary
Constructors Constructor Description TraceMemento() -
Method Summary
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)
-
Constructor Details
-
TraceMemento
public TraceMemento()
-
-
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
-
getXAxis
- Returns:
- the xAxis
-
setXAxis
- Parameters:
axis- the xAxis to set
-
getYAxis
- Returns:
- the yAxis
-
setYAxis
- 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
- Returns:
- the traceType
-
setTraceType
- 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
- Returns:
- the pointStyle
-
setPointStyle
- 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
- Returns:
- the baseLine
-
setBaseLine
- 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
- Returns:
- the xErrorBarType
-
setXErrorBarType
- Parameters:
errorBarType- the xErrorBarType to set
-
getYErrorBarType
- Returns:
- the yErrorBarType
-
setYErrorBarType
- 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
-