public class SugiyamaUtil
extends java.lang.Object
Constructor and Description |
---|
SugiyamaUtil() |
Modifier and Type | Method and Description |
---|---|
void |
addDummyNodes(java.util.List<java.util.List<Node>> levels) |
static boolean |
barycentersFullyEqual(double firstRowBarycenter,
double secondRowBarycenter,
double firstColumnBarycenter,
double secondColumnBarycenter) |
static boolean |
barycentersFullyEqual(SugiyamaDrawingAlgorithm.BarycenterNode first,
SugiyamaDrawingAlgorithm.BarycenterNode second) |
static double |
columnBarycenter(Node node,
java.util.List<? extends Node> previousLevel) |
static int |
compareBarycenter(double first,
double second) |
static int |
getDummyNodeLength(Node node) |
static boolean |
isDummyNode(Node node) |
static int |
positioningPriorityDown(Node node) |
static int |
positioningPriorityDown(Node node,
int dummyNodePriority) |
static int |
positioningPriorityUp(Node node) |
static int |
positioningPriorityUp(Node node,
int dummyNodePriority) |
void |
removeDummyNodes() |
static double |
rowBarycenter(Node node,
java.util.List<? extends Node> nextLevel) |
public static int positioningPriorityUp(Node node, int dummyNodePriority)
public static int positioningPriorityUp(Node node)
public static int positioningPriorityDown(Node node, int dummyNodePriority)
public static int positioningPriorityDown(Node node)
public static boolean isDummyNode(Node node)
public static int getDummyNodeLength(Node node)
public static double rowBarycenter(Node node, java.util.List<? extends Node> nextLevel)
public static double columnBarycenter(Node node, java.util.List<? extends Node> previousLevel)
public static int compareBarycenter(double first, double second)
public static boolean barycentersFullyEqual(double firstRowBarycenter, double secondRowBarycenter, double firstColumnBarycenter, double secondColumnBarycenter)
public static boolean barycentersFullyEqual(SugiyamaDrawingAlgorithm.BarycenterNode first, SugiyamaDrawingAlgorithm.BarycenterNode second)
public void addDummyNodes(java.util.List<java.util.List<Node>> levels)
public void removeDummyNodes()