Class LineIntersectionMember<V>

  • Type Parameters:
    V - The type of intersection member
    All Implemented Interfaces:
    java.lang.Cloneable

    public class LineIntersectionMember<V>
    extends IntersectionMember<V>
    An intersection member which geometry is a line
    • Constructor Detail

      • LineIntersectionMember

        public LineIntersectionMember​(V element,
                                      JGeometry line,
                                      oracle.sdovis.edit.util.JGeometrySegmentPoint intersectionSegmentPoint)
        Allocates a new line intersection member
        Parameters:
        element - the intersection's element
        line - the element's line
        intersectionSegmentPoint - the line's segment point where the intersection is taking place
      • LineIntersectionMember

        public LineIntersectionMember​(V element,
                                      JGeometry line)
    • Method Detail

      • isLine

        public boolean isLine()
        Description copied from class: IntersectionMember
        Tells whether the element held is a line
        Specified by:
        isLine in class IntersectionMember<V>
        Returns:
        true if the element is a line
      • isPoint

        public boolean isPoint()
        Description copied from class: IntersectionMember
        Tells whether the element held is a point
        Specified by:
        isPoint in class IntersectionMember<V>
        Returns:
        true if the element is a point
      • getIntersectionSegmentPoint

        public oracle.sdovis.edit.util.JGeometrySegmentPoint getIntersectionSegmentPoint()
        Gets the line's segment point where the intersection is taking place
        Returns:
        a line's segment point
      • setIntersectionSegmentPoint

        public void setIntersectionSegmentPoint​(oracle.sdovis.edit.util.JGeometrySegmentPoint segmentPoint)
        Sets the line's segment point where the intersection is taking place
        Parameters:
        segmentPoint - a line's segment point
      • getIntersectionLocaction

        public static IntersectionLocation getIntersectionLocaction​(JGeometry line,
                                                                    oracle.sdovis.edit.util.JGeometrySegmentPoint segmentPoint)
        Gets a line's intersection location based on the line's segment point
        Parameters:
        line - a line geometry
        segmentPoint - the line's segment point
        Returns:
        an intersection location for the line
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class IntersectionMember<V>
        Throws:
        java.lang.CloneNotSupportedException