Enum ExtendOptions

    • Enum Constant Detail

      • DEFAULT

        public static final ExtendOptions DEFAULT
        By default, extension considers both ends of paths. The old ends remain and new points are added at the extended ends. The new points have attributes that are extrapolated from adjacent existing segments.
        Since:
        100.1.0
      • RELOCATE_ENDS

        public static final ExtendOptions RELOCATE_ENDS
        If an extension is performed at an end, relocate the end point to the new position instead of leaving the old point and adding a new point at the new position.
        Since:
        100.1.0
      • KEEP_END_ATTRIBUTES

        public static final ExtendOptions KEEP_END_ATTRIBUTES
        If an extension is performed at an end, do not extrapolate the end-segment's attributes for the new point. Instead, make its attributes the same as the current end. Incompatible with NO_END_ATTRIBUTES.
        Since:
        100.1.0
      • NO_END_ATTRIBUTES

        public static final ExtendOptions NO_END_ATTRIBUTES
        If an extension is performed at an end, do not extrapolate the end-segment's attributes for the new point. Instead, make its attributes be empty. Incompatible with KEEP_END_ATTRIBUTES.
        Since:
        100.1.0
      • DO_NOT_EXTEND_FROM_START_POINT

        public static final ExtendOptions DO_NOT_EXTEND_FROM_START_POINT
        Do not extend the 'from' end of any path.
        Since:
        100.1.0
      • DO_NOT_EXTEND_FROM_END_POINT

        public static final ExtendOptions DO_NOT_EXTEND_FROM_END_POINT
        Do not extend the 'to' end of any path.
        Since:
        100.1.0
    • Method Detail

      • values

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

        public static ExtendOptions valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null