|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.planargraph.DirectedEdgeStar
public class DirectedEdgeStar
A sorted collection of DirectedEdge
s which leave a Node
in a PlanarGraph
.
Field Summary | |
---|---|
protected java.util.List |
outEdges
The underlying list of outgoing DirectedEdges |
Constructor Summary | |
---|---|
DirectedEdgeStar()
Constructs a DirectedEdgeStar with no edges. |
Method Summary | |
---|---|
void |
add(DirectedEdge de)
Adds a new member to this DirectedEdgeStar. |
Coordinate |
getCoordinate()
Returns the coordinate for the node at wich this star is based |
int |
getDegree()
Returns the number of edges around the Node associated with this DirectedEdgeStar. |
java.util.List |
getEdges()
Returns the DirectedEdges, in ascending order by angle with the positive x-axis. |
int |
getIndex(DirectedEdge dirEdge)
Returns the zero-based index of the given DirectedEdge, after sorting in ascending order by angle with the positive x-axis. |
int |
getIndex(Edge edge)
Returns the zero-based index of the given Edge, after sorting in ascending order by angle with the positive x-axis. |
int |
getIndex(int i)
Returns the remainder when i is divided by the number of edges in this DirectedEdgeStar. |
DirectedEdge |
getNextEdge(DirectedEdge dirEdge)
Returns the DirectedEdge on the left-hand side of the given DirectedEdge (which must be a member of this DirectedEdgeStar). |
java.util.Iterator |
iterator()
Returns an Iterator over the DirectedEdges, in ascending order by angle with the positive x-axis. |
void |
remove(DirectedEdge de)
Drops a member of this DirectedEdgeStar. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List outEdges
Constructor Detail |
---|
public DirectedEdgeStar()
Method Detail |
---|
public void add(DirectedEdge de)
public void remove(DirectedEdge de)
public java.util.Iterator iterator()
public int getDegree()
public Coordinate getCoordinate()
public java.util.List getEdges()
public int getIndex(Edge edge)
public int getIndex(DirectedEdge dirEdge)
public int getIndex(int i)
public DirectedEdge getNextEdge(DirectedEdge dirEdge)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |