Enum Path2F.SegmentType

    • Field Detail

      • point_count

        public final int point_count
        Number of points associated with this segment type
    • Method Detail

      • values

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

        public static Path2F.SegmentType 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
      • integer

        public byte integer()
        Return the integer segment type value as a byte
      • valueOf

        public static Path2F.SegmentType valueOf​(int type)
        Return the SegmentType associated with the integer segment type
      • getPointCount

        public static int getPointCount​(int type)
        Return the number of points associated with the integer segment type