|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface OrthogonalRoutingGenerator.IRoutingDirectionStrategy
A routing direction strategy adapts the OrthogonalRoutingGenerator
to different
routing directions. Usually, but not always, edges will be routes from west to east.
However, with northern and southern external ports, this changes. Routing strategies
support that.
Method Summary | |
---|---|
void |
calculateBendPoints(de.cau.cs.kieler.klay.layered.p5edges.OrthogonalRoutingGenerator.HyperNode hyperNode,
double startPos,
double edgeSpacing)
Calculates and assigns bend points for edges incident to the ports belonging to the given hyper edge. |
double |
getPortPositionOnHyperNode(LPort port)
Returns the port's position on a hyper edge axis. |
PortSide |
getSourcePortSide()
Returns the side of ports that should be considered on a source layer. |
PortSide |
getTargetPortSide()
Returns the side of ports that should be considered on a target layer. |
Method Detail |
---|
double getPortPositionOnHyperNode(LPort port)
port
- the port.
PortSide getSourcePortSide()
PortSide getTargetPortSide()
void calculateBendPoints(de.cau.cs.kieler.klay.layered.p5edges.OrthogonalRoutingGenerator.HyperNode hyperNode, double startPos, double edgeSpacing)
hyperNode
- the hyper edge.startPos
- the position of the trunk of the first hyper edge between the
layers. This position, together with the current hyper node's
rank allows the calculation of the hyper node's trunk's position.edgeSpacing
- the space between two edges.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |