public class LevelLayout.LevelData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
_copyGraph
The local graph copy of the user's graph, to which
dummy nodes/edges are added, and on which the actual
layout is first performed before these values are
copied back into the user's graph.
|
protected java.util.ArrayList[] |
_levels
A simple data structure to keep track of the levels.
|
protected int |
_maxLevel
A variable that is used to keep track of the maximum
level in the graph, starting at -1 and then incremented
as the level-finding algorithm is applied.
|
protected java.lang.Object |
_meta
A meta-node which is a dummy node that is added to the graph
with edges to every other node in the graph in order to make it
easier to perform a topological sort.
|
protected java.lang.Object |
_origGraph
The original graph that is passed in by the user on
which the layout is eventually being assigned.
|
protected LayoutTarget |
_target
The layout target that is passed in by the user and
used to assign the layout to the view.
|
Constructor and Description |
---|
LevelData(LayoutTarget t,
java.lang.Object composite) |
Modifier and Type | Method and Description |
---|---|
int |
getLevelCount() |
int |
getMaxLevelWidth(boolean withDummy)
Each level contains a list of nodes that are in that
level (level width).
|
protected LayoutTarget _target
protected java.lang.Object _origGraph
protected java.lang.Object _copyGraph
protected int _maxLevel
protected java.util.ArrayList[] _levels
protected java.lang.Object _meta
public LevelData(LayoutTarget t, java.lang.Object composite)
public int getLevelCount()
public int getMaxLevelWidth(boolean withDummy)