Class PolygonizeDirectedEdge

Hierarchy: Object , GraphComponent, DirectedEdge, PolygonizeDirectedEdge
All Implemented Interfaces: Comparable
class PolygonizeDirectedEdge
extends DirectedEdge
A DirectedEdge of a PolygonizeGraph, which represents an edge of a polygon formed by the graph. May be logically deleted from the graph by setting the marked flag.

Other

  • version: 1.7
public PolygonizeDirectedEdge(Node from, Node to, Coordinate directionPt, boolean edgeDirection)
Constructs a directed edge connecting the from node to the to node.
Parameters:
directionPt - directionPt specifies this DirectedEdge's direction (given by an imaginary line from the from node to directionPt)
edgeDirection - edgeDirection whether this DirectedEdge's direction is the same as or opposite to that of the parent Edge (if any)
public long getLabel()
Returns the identifier attached to this directed edge.
public void setLabel(long label)
Attaches an identifier to this directed edge.
public PolygonizeDirectedEdge getNext()
Returns the next directed edge in the EdgeRing that this directed edge is a member of.
public void setNext(PolygonizeDirectedEdge next)
Sets the next directed edge in the EdgeRing that this directed edge is a member of.
public boolean isInRing()
Returns the ring of directed edges that this directed edge is a member of, or null if the ring has not been set.
See also:
#setRing(EdgeRing)
public void setRing(EdgeRing edgeRing)
Sets the ring of directed edges that this directed edge is a member of.
public EdgeRing getRing()
Gets the EdgeRing this edge is a member of.
Returns:
an edge ring