|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.operation.buffer.BufferSubgraph
public class BufferSubgraph
A connected subset of the graph of
DirectedEdge
s and Node
s.
Its edges will generate either
Constructor Summary | |
---|---|
BufferSubgraph()
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
BufferSubgraphs are compared on the x-value of their rightmost Coordinate. |
void |
computeDepth(int outsideDepth)
|
void |
create(Node node)
Creates the subgraph consisting of all edges reachable from this node. |
void |
findResultEdges()
Find all edges whose depths indicates that they are in the result area(s). |
java.util.List |
getDirectedEdges()
|
Envelope |
getEnvelope()
Computes the envelope of the edges in the subgraph. |
java.util.List |
getNodes()
|
Coordinate |
getRightmostCoordinate()
Gets the rightmost coordinate in the edges of the subgraph |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferSubgraph()
Method Detail |
---|
public java.util.List getDirectedEdges()
public java.util.List getNodes()
public Envelope getEnvelope()
public Coordinate getRightmostCoordinate()
public void create(Node node)
node
- a node to start the graph traversal frompublic void computeDepth(int outsideDepth)
public void findResultEdges()
public int compareTo(java.lang.Object o)
g1 >= g2 <==> Ring(g2) does not contain Ring(g1)
where Polygon(g) is the buffer polygon that is built from g.
This relationship is used to sort the BufferSubgraphs so that shells are guaranteed to be built before holes.
compareTo
in interface java.lang.Comparable
|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |