Enum CrossingComputationType

    • Enum Constant Detail

      • STANDARD

        public static final CrossingComputationType STANDARD
        The crossing is computed with the default standard approach.
      • AUTO_CLOSE

        public static final CrossingComputationType AUTO_CLOSE
        The path is automatically close by the crossing computation function.
      • SIMPLE_INTERSECTION_WHEN_NOT_POLYGON

        public static final CrossingComputationType SIMPLE_INTERSECTION_WHEN_NOT_POLYGON
        When the path is not a polygon, i.e. not closed, the crossings will only consider the shape intersection only. The other crossing values will be assumed to be always equal to zero.
    • Method Detail

      • values

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

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