public class LevelLayout.LevelData extends Object
Modifier and Type | Field and Description |
---|---|
protected 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 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 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 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,
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 Object _origGraph
protected Object _copyGraph
protected int _maxLevel
protected ArrayList[] _levels
protected Object _meta
public LevelData(LayoutTarget t, Object composite)
public int getLevelCount()
public int getMaxLevelWidth(boolean withDummy)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.