Enum 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.
    • 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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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
    • Field Detail

      • description

        private java.lang.String description
    • Constructor Detail

      • TraceType

        private TraceType​(java.lang.String description)
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<Trace.TraceType>
      • stringValues

        public static java.lang.String[] stringValues()