com.vividsolutions.jts.operation.overlay
Class LineBuilder

java.lang.Object
  extended bycom.vividsolutions.jts.operation.overlay.LineBuilder

public class LineBuilder
extends java.lang.Object

Forms JTS LineStrings out of a the graph of DirectedEdges created by an OverlayOp.

Version:
1.4.0

Constructor Summary
LineBuilder(OverlayOp op, GeometryFactory geometryFactory, PointLocator ptLocator)
           
 
Method Summary
 java.util.List build(int opCode)
           
 void collectBoundaryTouchEdge(DirectedEdge de, int opCode, java.util.List edges)
          Collect edges from Area inputs which should be in the result but which have not been included in a result area.
 void collectLineEdge(DirectedEdge de, int opCode, java.util.List edges)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineBuilder

public LineBuilder(OverlayOp op,
                   GeometryFactory geometryFactory,
                   PointLocator ptLocator)
Method Detail

build

public java.util.List build(int opCode)
Returns:
a list of the LineStrings in the result of the specified overlay operation

collectLineEdge

public void collectLineEdge(DirectedEdge de,
                            int opCode,
                            java.util.List edges)

collectBoundaryTouchEdge

public void collectBoundaryTouchEdge(DirectedEdge de,
                                     int opCode,
                                     java.util.List edges)
Collect edges from Area inputs which should be in the result but which have not been included in a result area. This happens ONLY: