Enum IntersectionLocation

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

    public enum IntersectionLocation
    extends java.lang.Enum<IntersectionLocation>
    Defines different line locations
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      FIRST_POINT
      A line's first point
      LAST_POINT
      A line's last point
      MID_POINT
      Some point in the middle of a line's segment
      SEGMENT_POINT
      Some start or end segment point in a line except the start and end line's point
    • Method Summary

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

      • SEGMENT_POINT

        public static final IntersectionLocation SEGMENT_POINT
        Some start or end segment point in a line except the start and end line's point
      • MID_POINT

        public static final IntersectionLocation MID_POINT
        Some point in the middle of a line's segment
    • Field Detail

      • EXTREMEPOINT_INTERSECTIONS

        public static final java.util.EnumSet<IntersectionLocation> EXTREMEPOINT_INTERSECTIONS
        Locations at the extreme points of a line
      • MIDPOINT_INTERSECTIONS

        public static final java.util.EnumSet<IntersectionLocation> MIDPOINT_INTERSECTIONS
        Locations in middle points of a line
    • Method Detail

      • values

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

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