de.cau.cs.kieler.klay.layered.p5edges
Class LongEdge

java.lang.Object
  extended by 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 red

Constructor Summary
LongEdge(LEdge newEdge)
          default constructor.
 
Method Summary
 LEdge getEdge()
           
 KVector getEndPoint()
           
 KVector getEndTangent()
           
 LinkedList<KVector> getPoints()
           
 KVector getStartPoint()
           
 KVector getStartTangent()
           
 LPort getTarget()
           
 void initialize()
          calculates the target port/node, and the start/end tangents.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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