public class LayerStructure
extends java.lang.Object
Constructor and Description |
---|
LayerStructure(int layers) |
Modifier and Type | Method and Description |
---|---|
void |
addAll(NodeWrapper w) |
void |
addSubLayer(int after) |
void |
calculatePosition(int xDistance,
int yDistance,
boolean topToBottom,
int xOffset,
int yoffset,
boolean center) |
int |
getHeight() |
java.util.ArrayList<NodeWrapper> |
getLayer(int num) |
int |
getNumberOfLayers() |
int |
getTotalCrossings() |
int |
getWidth() |
boolean |
isSubLayer(int i) |
void |
markAllAsHierarchy() |
void |
position()
aligns the positions of all nodes
|
void |
reduceCrossings(SugiyamaLayoutAlgorithm sugiyamaLayoutAlgorithm) |
void |
setInitialSortDirection(boolean value)
defines if the bary-centric ordering starts upwards or downwards
(true = down (default), false = up)
|
void |
shortenEdges()
shortens the edges by moving nodes to lower layers if possible
this also reduces the number of nodes present in the layers
|
java.lang.String |
toString() |
public void addAll(NodeWrapper w)
public void addSubLayer(int after)
public int getNumberOfLayers()
public void reduceCrossings(SugiyamaLayoutAlgorithm sugiyamaLayoutAlgorithm)
sugiyamaLayoutAlgorithm
- public java.util.ArrayList<NodeWrapper> getLayer(int num)
public int getTotalCrossings()
public java.lang.String toString()
toString
in class java.lang.Object
public void calculatePosition(int xDistance, int yDistance, boolean topToBottom, int xOffset, int yoffset, boolean center)
public void position()
public void setInitialSortDirection(boolean value)
value
- public boolean isSubLayer(int i)
i
- public void markAllAsHierarchy()
public int getWidth()
public int getHeight()
public void shortenEdges()