Package eu.bandm.tools.graficUtils
Class LayoutGrid<D>
java.lang.Object
eu.bandm.tools.graficUtils.LayoutGrid<D>
- Direct Known Subclasses:
LayoutLeftmost
Base class for layout algorithms which try to place visual representations
of graph nodes automatically into a grid of rows and columns.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
LayoutGrid
(GraphModel<D> m) Create a layout object for the graph model, not yet performing the layout calculation. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dump
(PrintStream p) Print rows and columns, for debugging.int
get the column of the graph node, after successul layout calculation.int
get the row of the graph node, after successul layout calculation.abstract void
Perfom the layout calculation process.
-
Field Details
-
model
-
rows
-
cols
-
-
Constructor Details
-
LayoutGrid
Create a layout object for the graph model, not yet performing the layout calculation.
-
-
Method Details
-
getRow
get the row of the graph node, after successul layout calculation. -
getCol
get the column of the graph node, after successul layout calculation. -
layout
Perfom the layout calculation process. -
dump
Print rows and columns, for debugging.
-