Class OverlayNodeFactory

 1  
 2  
 3 /*
 4  * Copyright (c) 2016 Vivid Solutions.
 5  *
 6  * All rights reserved. This program and the accompanying materials
 7  * are made available under the terms of the Eclipse Public License 2.0
 8  * and Eclipse Distribution License v. 1.0 which accompanies this distribution.
 9  * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v20.html
10  * and the Eclipse Distribution License is available at
11  *
12  * http://www.eclipse.org/org/documents/edl-v10.php.
13  */
14 package org.locationtech.jts.operation.overlay;
15  
16 /**
17  * @version 1.7
18  */
19 import org.locationtech.jts.geom.Coordinate;
20 import org.locationtech.jts.geomgraph.DirectedEdgeStar;
21 import org.locationtech.jts.geomgraph.Node;
22 import org.locationtech.jts.geomgraph.NodeFactory;
23 import org.locationtech.jts.geomgraph.PlanarGraph;
24  
25 /**
26  * Creates nodes for use in the {@link PlanarGraph}s constructed during
27  * overlay operations.
28  *
29  * @version 1.7
30  */
31 public class OverlayNodeFactory
32   extends NodeFactory
33 {
34   public Node createNode(Coordinate coord)
35   {
36     return new Node(coord, new DirectedEdgeStar());
37   }
38 }
39