public class GMLDirectedEdge
extends java.lang.Object
| Constructor and Description |
|---|
GMLDirectedEdge(GMLEdge edge,
boolean forward)
Construct a directed GML edge.
|
GMLDirectedEdge(GMLEdge edge,
GMLNode start)
Construct a directed GML edge.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
GMLEdge |
getEdge()
Get the underlying edge.
|
GMLCoordinates |
getEndCoordinates()
Get the coordinates of the end of this edge.
|
GMLNode |
getEndNode()
Get the node at the end of the underlying edge.
|
java.util.List<GMLCoordinates> |
getPoints()
Get the points of the underlying edge in the right order for this directed edge.
|
GMLCoordinates |
getStartCoordinates()
Get the coordinates of the start of this edge.
|
GMLNode |
getStartNode()
Get the node at the start of the underlying edge.
|
int |
hashCode() |
boolean |
isForward()
Is this directed edge in the direction of the underlying edge?
|
void |
reverse()
Reverse the direction of this edge.
|
java.lang.String |
toString() |
public GMLDirectedEdge(GMLEdge edge, boolean forward)
edge - The underlying edge.forward - True if this directed edge is aligned with the underlying edge direction, false otherwise.public GMLEdge getEdge()
public boolean isForward()
public void reverse()
public GMLNode getStartNode()
public GMLNode getEndNode()
public java.util.List<GMLCoordinates> getPoints()
public GMLCoordinates getStartCoordinates()
public GMLCoordinates getEndCoordinates()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object