Package eu.bandm.tools.graficUtils
Class LayoutLeftmost<D>
java.lang.Object
eu.bandm.tools.graficUtils.LayoutGrid<D>
eu.bandm.tools.graficUtils.LayoutLeftmost<D>
A grid layouter which tries a most compact arrangements of nodes,
ruled by generations.
It needs one certain root object. It lays all neighbours from top down, and all siblings form left to right. E.g.
It needs one certain root object. It lays all neighbours from top down, and all siblings form left to right. E.g.
1->2 2->3 2->4 1->5 5->6 will give 1 2 5 3 4 6
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
Fields inherited from class eu.bandm.tools.graficUtils.LayoutGrid
cols, model, rows
-
Constructor Summary
-
Method Summary
Methods inherited from class eu.bandm.tools.graficUtils.LayoutGrid
dump, getCol, getRow
-
Field Details
-
currow
protected int currow -
curcol
protected int curcol -
visited
-
-
Constructor Details
-
LayoutLeftmost
-
-
Method Details
-
layout
Perform the layout process with given graph root.- Specified by:
layout
in classLayoutGrid<D>
- Parameters:
obj
- the root from which to start the layouting
-
calc
-