| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
package org.locationtech.jts.operation.linemerge; |
| 14 |
|
| 15 |
import org.locationtech.jts.geom.LineString; |
| 16 |
import org.locationtech.jts.planargraph.Edge; |
| 17 |
|
| 18 |
/** |
| 19 |
* An edge of a {@link LineMergeGraph}. The <code>marked</code> field indicates |
| 20 |
* whether this Edge has been logically deleted from the graph. |
| 21 |
* |
| 22 |
* @version 1.7 |
| 23 |
*/ |
| 24 |
public class LineMergeEdge extends Edge { |
| 25 |
private LineString line; |
| 26 |
/** |
| 27 |
* Constructs a LineMergeEdge with vertices given by the specified LineString. |
| 28 |
*/ |
| 29 |
public LineMergeEdge(LineString line) { |
| 30 |
this.line = line; |
| 31 |
} |
| 32 |
/** |
| 33 |
* Returns the LineString specifying the vertices of this edge. |
| 34 |
*/ |
| 35 |
public LineString getLine() { |
| 36 |
return line; |
| 37 |
} |
| 38 |
} |
| 39 |
|