public class SugiyamaOriginalPositionCalculator extends java.lang.Object implements PositionCalculator<java.util.List<? extends Node>,Node>
Modifier and Type | Class and Description |
---|---|
protected class |
SugiyamaOriginalPositionCalculator.IntermediateNode |
Constructor and Description |
---|
SugiyamaOriginalPositionCalculator(double layoutStabilityWeight) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<Node,java.lang.Double> |
calculatePositions(java.util.List<? extends java.util.List<? extends Node>> levels,
double maximalPosition,
double minDistanceBetweenNodes) |
protected double |
desiredDownPosition(SugiyamaOriginalPositionCalculator.IntermediateNode currentNode,
java.util.List<SugiyamaOriginalPositionCalculator.IntermediateNode> currentLevel,
java.util.List<SugiyamaOriginalPositionCalculator.IntermediateNode> previousLevel) |
protected double |
desiredUpPosition(SugiyamaOriginalPositionCalculator.IntermediateNode currentNode,
java.util.List<SugiyamaOriginalPositionCalculator.IntermediateNode> currentLevel,
java.util.List<SugiyamaOriginalPositionCalculator.IntermediateNode> nextLevel) |
protected void |
upOrDownProcedure(java.util.List<SugiyamaOriginalPositionCalculator.IntermediateNode> sortedCurrentLevel,
java.util.function.Function<SugiyamaOriginalPositionCalculator.IntermediateNode,java.lang.Double> desiredPositionGetter,
double maximalPosition,
double minDistanceBetweenNodes) |
public SugiyamaOriginalPositionCalculator(double layoutStabilityWeight)
public java.util.Map<Node,java.lang.Double> calculatePositions(java.util.List<? extends java.util.List<? extends Node>> levels, double maximalPosition, double minDistanceBetweenNodes)
calculatePositions
in interface PositionCalculator<java.util.List<? extends Node>,Node>
protected double desiredUpPosition(SugiyamaOriginalPositionCalculator.IntermediateNode currentNode, java.util.List<SugiyamaOriginalPositionCalculator.IntermediateNode> currentLevel, java.util.List<SugiyamaOriginalPositionCalculator.IntermediateNode> nextLevel)
protected double desiredDownPosition(SugiyamaOriginalPositionCalculator.IntermediateNode currentNode, java.util.List<SugiyamaOriginalPositionCalculator.IntermediateNode> currentLevel, java.util.List<SugiyamaOriginalPositionCalculator.IntermediateNode> previousLevel)
protected void upOrDownProcedure(java.util.List<SugiyamaOriginalPositionCalculator.IntermediateNode> sortedCurrentLevel, java.util.function.Function<SugiyamaOriginalPositionCalculator.IntermediateNode,java.lang.Double> desiredPositionGetter, double maximalPosition, double minDistanceBetweenNodes)