Class EdgeEndBuilder


  • public class EdgeEndBuilder
    extends java.lang.Object
    Computes the EdgeEnds which arise from a noded Edge.
    Version:
    1.7
    • Constructor Detail

      • EdgeEndBuilder

        public EdgeEndBuilder()
    • Method Detail

      • computeEdgeEnds

        public java.util.List computeEdgeEnds​(java.util.Iterator edges)
      • computeEdgeEnds

        public void computeEdgeEnds​(Edge edge,
                                    java.util.List l)
        Creates stub edges for all the intersections in this Edge (if any) and inserts them into the graph.
      • createEdgeEndForPrev

        void createEdgeEndForPrev​(Edge edge,
                                  java.util.List l,
                                  EdgeIntersection eiCurr,
                                  EdgeIntersection eiPrev)
        Create a EdgeStub for the edge before the intersection eiCurr. The previous intersection is provided in case it is the endpoint for the stub edge. Otherwise, the previous point from the parent edge will be the endpoint.
        eiCurr will always be an EdgeIntersection, but eiPrev may be null.
      • createEdgeEndForNext

        void createEdgeEndForNext​(Edge edge,
                                  java.util.List l,
                                  EdgeIntersection eiCurr,
                                  EdgeIntersection eiNext)
        Create a StubEdge for the edge after the intersection eiCurr. The next intersection is provided in case it is the endpoint for the stub edge. Otherwise, the next point from the parent edge will be the endpoint.
        eiCurr will always be an EdgeIntersection, but eiNext may be null.