|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.klay.layered.p3order.NodeRelativePortDistributor
public class NodeRelativePortDistributor
Calculates port ranks and distributes ports.
Constructor Summary | |
---|---|
NodeRelativePortDistributor(float[] portRanks,
float[] portBarycenters)
Constructs a NodeRelativePortDistributor with the given portPos-array. |
Method Summary | |
---|---|
void |
calculatePortRanks(LNode[] layer)
Determine positions for all ports in the given layer. |
void |
distributePorts(LNode[][] layeredGraph)
Distribute the ports of the layered graph depending on the port constraints. |
List<LPort> |
getSortedInputPorts(LNode node)
Returns a list of input ports, beginning at the top right port of the eastern side, going clockwise. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeRelativePortDistributor(float[] portRanks, float[] portBarycenters)
portRanks
- The array of portRanks;portBarycenters
- The barycenter value array for ports.Method Detail |
---|
public void calculatePortRanks(LNode[] layer)
calculatePortRanks
in interface IPortDistributor
layer
- a layerpublic List<LPort> getSortedInputPorts(LNode node)
getSortedInputPorts
in interface IPortDistributor
node
- the node whose input ports to return.
public void distributePorts(LNode[][] layeredGraph)
distributePorts
in interface IPortDistributor
layeredGraph
- a layered graph
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |