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.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
antiAliasing
private int
areaAlpha
private Trace.BaseLine
baseLine
private boolean
drawYErrorInArea
private int
errorBarCapWidth
private org.eclipse.swt.graphics.Color
errorBarColor
private boolean
errorBarEnabled
private int
lineWidth
private java.lang.String
name
private int
pointSize
private Trace.PointStyle
pointStyle
private org.eclipse.swt.graphics.Color
traceColor
private Trace.TraceType
traceType
private Axis
xAxis
private Trace.ErrorBarType
xErrorBarType
private Axis
yAxis
private Trace.ErrorBarType
yErrorBarType
-
Constructor Summary
Constructors Constructor Description TraceMemento()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAreaAlpha()
Trace.BaseLine
getBaseLine()
int
getErrorBarCapWidth()
org.eclipse.swt.graphics.Color
getErrorBarColor()
int
getLineWidth()
java.lang.String
getName()
int
getPointSize()
Trace.PointStyle
getPointStyle()
org.eclipse.swt.graphics.Color
getTraceColor()
Trace.TraceType
getTraceType()
Axis
getXAxis()
Trace.ErrorBarType
getXErrorBarType()
Axis
getYAxis()
Trace.ErrorBarType
getYErrorBarType()
boolean
isAntiAliasing()
boolean
isDrawYErrorInArea()
boolean
isErrorBarEnabled()
void
setAntiAliasing(boolean antiAliasing)
void
setAreaAlpha(int areaAlpha)
void
setBaseLine(Trace.BaseLine baseLine)
void
setDrawYErrorInArea(boolean drawYErrorInArea)
void
setErrorBarCapWidth(int errorBarCapWidth)
void
setErrorBarColor(org.eclipse.swt.graphics.Color errorBarColor)
void
setErrorBarEnabled(boolean errorBarEnabled)
void
setLineWidth(int lineWidth)
void
setName(java.lang.String name)
void
setPointSize(int pointSize)
void
setPointStyle(Trace.PointStyle pointStyle)
void
setTraceColor(org.eclipse.swt.graphics.Color traceColor)
void
setTraceType(Trace.TraceType traceType)
void
setXAxis(Axis axis)
void
setXErrorBarType(Trace.ErrorBarType errorBarType)
void
setYAxis(Axis axis)
void
setYErrorBarType(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
-
-