de.cau.cs.kieler.klay.layered.p5edges
Class LongEdge
java.lang.Object
de.cau.cs.kieler.klay.layered.p5edges.LongEdge
public class LongEdge
- extends Object
Class for convenient use of "long edges", this are edges covering more than one layer. In the
base LGraph data structure it is not possible to access the target of such an edge directly. This
class also supplies two tangents for the endpoints, each heading to the adjacent dummynode.
It is necessary to call initialize()
prior usage!
- Rating

LongEdge
public LongEdge(LEdge newEdge)
- default constructor. One also need to call
initalize()
to initialize all values
stored for this long edge.
- Parameters:
newEdge
- underlying edge.
initialize
public void initialize()
- calculates the target port/node, and the start/end tangents.
getEdge
public LEdge getEdge()
- Returns:
- the edge
getEndTangent
public KVector getEndTangent()
- Returns:
- the endTangent
getStartTangent
public KVector getStartTangent()
- Returns:
- the startTangent
getTarget
public LPort getTarget()
- Returns:
- the target
getPoints
public LinkedList<KVector> getPoints()
- Returns:
- positions being passed by this long edge (actually these are the positions of the
dummy nodes).
getEndPoint
public KVector getEndPoint()
- Returns:
- the endPoint
getStartPoint
public KVector getStartPoint()
- Returns:
- the startPoint
toString
public String toString()
-
- Overrides:
toString
in class Object