Enum SketchCreationMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SketchCreationMode>

    public enum SketchCreationMode
    extends java.lang.Enum<SketchCreationMode>
    Defines what type of geometry is going to be sketched during a SketchEditor session.
    Since:
    100.1.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      FREEHAND_LINE
      Polyline geometry in one stroke by freehand gesture
      FREEHAND_POLYGON
      Polygon geometry in one stroke by freehand gesture
      MULTIPOINT
      Multipoint geometry
      POINT
      Point geometry
      POLYGON
      Polygon geometry incrementally vertex by vertex
      POLYLINE
      Polyline geometry incrementally vertex by vertex
      RECTANGLE
      Rectangle geometry.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SketchCreationMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SketchCreationMode[] 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, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • MULTIPOINT

        public static final SketchCreationMode MULTIPOINT
        Multipoint geometry
        Since:
        100.1.0
      • POLYLINE

        public static final SketchCreationMode POLYLINE
        Polyline geometry incrementally vertex by vertex
        Since:
        100.1.0
      • POLYGON

        public static final SketchCreationMode POLYGON
        Polygon geometry incrementally vertex by vertex
        Since:
        100.1.0
      • FREEHAND_LINE

        public static final SketchCreationMode FREEHAND_LINE
        Polyline geometry in one stroke by freehand gesture
        Since:
        100.1.0
      • FREEHAND_POLYGON

        public static final SketchCreationMode FREEHAND_POLYGON
        Polygon geometry in one stroke by freehand gesture
        Since:
        100.1.0
      • RECTANGLE

        public static final SketchCreationMode RECTANGLE
        Rectangle geometry. A rectangle is drawn by three points - the first two establish a base line and the third defines the rectangle on one side of the base line.
        Since:
        100.9.0
    • Method Detail

      • values

        public static SketchCreationMode[] 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 (SketchCreationMode c : SketchCreationMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SketchCreationMode 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