|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.alg.AbstractAlgorithm
de.cau.cs.kieler.klay.layered.p3order.AbstractCrossingMinimizer
public abstract class AbstractCrossingMinimizer
Abstract superclass for crossing minimizer implementations. Contains commonly used methods for port distribution.
Field Summary | |
---|---|
protected float[] |
portBarycenter
barycenter values for ports. |
protected float[] |
portPos
port position array. |
Constructor Summary | |
---|---|
AbstractCrossingMinimizer()
|
Method Summary | |
---|---|
protected void |
assignPortPos(LNode[] layer)
Determine positions for all ports in the given layer. |
protected void |
distributePorts(LNode[][] layeredGraph)
Distribute the ports of the layered graph depending on the port constraints. |
IntermediateProcessingStrategy |
getIntermediateProcessingStrategy(LayeredGraph graph)
Returns the intermediate layout processors this phase depends on. |
protected 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 de.cau.cs.kieler.core.alg.AbstractAlgorithm |
---|
getMonitor, reset, reset, setProgressMonitor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.cau.cs.kieler.klay.layered.ILayoutProcessor |
---|
process |
Methods inherited from interface de.cau.cs.kieler.core.alg.IAlgorithm |
---|
reset, reset, setProgressMonitor |
Field Detail |
---|
protected float[] portBarycenter
protected float[] portPos
Constructor Detail |
---|
public AbstractCrossingMinimizer()
Method Detail |
---|
public IntermediateProcessingStrategy getIntermediateProcessingStrategy(LayeredGraph graph)
getIntermediateProcessingStrategy
in interface ILayoutPhase
graph
- the layered graph to be processed. The strategy may vary
depending on certain properties of the graph.
null
.protected void assignPortPos(LNode[] layer)
layer
- a layerprotected List<LPort> getSortedInputPorts(LNode node)
node
- the node whose input ports to return.
protected void distributePorts(LNode[][] layeredGraph)
layeredGraph
- a layered graph
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |