public abstract class LayoutGrid<D> extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<D,Integer> |
cols |
protected GraphModel<D> |
model |
protected Map<D,Integer> |
rows |
Constructor and Description |
---|
LayoutGrid(GraphModel<D> m)
Create a layout object for the graph model, not yet performing the
layout calculation.
|
Modifier and Type | Method and Description |
---|---|
void |
dump(PrintStream p)
Print rows and columns, for debugging.
|
int |
getCol(D obj)
get the column of the graph node, after successul layout calculation.
|
int |
getRow(D obj)
get the row of the graph node, after successul layout calculation.
|
abstract void |
layout(D obj)
Perfom the layout calculation process.
|
protected GraphModel<D> model
public LayoutGrid(GraphModel<D> m)
public int getRow(D obj)
public int getCol(D obj)
public abstract void layout(D obj)
public void dump(PrintStream p)
see also the complete user documentation .