Enum Trace.TraceType
- java.lang.Object
-
- java.lang.Enum<Trace.TraceType>
-
- org.eclipse.nebula.visualization.xygraph.figures.Trace.TraceType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Trace.TraceType>
- Enclosing class:
- Trace
public static enum Trace.TraceType extends java.lang.Enum<Trace.TraceType>
The way how the trace will be drawn.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AREA
Fill the area under the trace.BAR
Draw each data point as a bar whose width is defined by lineWidth.DASH_LINE
Dash LineDASHDOT_LINE
Dashdot LineDASHDOTDOT_LINE
Dashdotdot LineDOT_LINE
Dot LineLINE_AREA
It also has a solid line in addition to the area.POINT
Only draw point whose style is defined by pointStyle.SOLID_LINE
Solid LineSTEP_HORIZONTALLY
Solid line in step.STEP_VERTICALLY
Solid line in step.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
description
-
Constructor Summary
Constructors Modifier Constructor Description private
TraceType(java.lang.String description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]
stringValues()
java.lang.String
toString()
static Trace.TraceType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Trace.TraceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SOLID_LINE
public static final Trace.TraceType SOLID_LINE
Solid Line
-
DASH_LINE
public static final Trace.TraceType DASH_LINE
Dash Line
-
POINT
public static final Trace.TraceType POINT
Only draw point whose style is defined by pointStyle. Its size is defined by pointSize.
-
BAR
public static final Trace.TraceType BAR
Draw each data point as a bar whose width is defined by lineWidth. The data point is in the middle of the bar on X direction. The bottom of the bar depends on the baseline. The alpha of the bar is defined by areaAlpha.
-
AREA
public static final Trace.TraceType AREA
Fill the area under the trace. The bottom of the filled area depends on the baseline. The alpha of the filled area is defined by areaAlpha.
-
LINE_AREA
public static final Trace.TraceType LINE_AREA
It also has a solid line in addition to the area.
-
STEP_VERTICALLY
public static final Trace.TraceType STEP_VERTICALLY
Solid line in step. It looks like the y value(on vertical direction) changed firstly.
-
STEP_HORIZONTALLY
public static final Trace.TraceType STEP_HORIZONTALLY
Solid line in step. It looks like the x value(on horizontal direction) changed firstly.
-
DASHDOT_LINE
public static final Trace.TraceType DASHDOT_LINE
Dashdot Line
-
DASHDOTDOT_LINE
public static final Trace.TraceType DASHDOTDOT_LINE
Dashdotdot Line
-
DOT_LINE
public static final Trace.TraceType DOT_LINE
Dot Line
-
-
Method Detail
-
values
public static Trace.TraceType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Trace.TraceType c : Trace.TraceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Trace.TraceType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Trace.TraceType>
-
stringValues
public static java.lang.String[] stringValues()
-
-