public class Hypergrid
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
GRID_DISTANCE_X |
static int |
GRID_DISTANCE_Y |
Constructor and Description |
---|
Hypergrid(java.util.ArrayList<BPMNNodeInterface> clusters,
GridLayouter parent,
java.util.HashMap<BPMNNodeInterface,java.lang.Integer> poolIDCache) |
Modifier and Type | Method and Description |
---|---|
void |
addCol(int x,
int grid) |
void |
addRow(int i,
int grid) |
void |
applyCoordinates() |
void |
calculateSizes(boolean synchronizePools) |
int |
getColCount(int i) |
Grid |
getGrid(int index) |
int |
getMessageFlowWeight(java.util.ArrayList<BPMNNodeInterface> pools,
AbstractModelAdapter model)
determines the abstarct length of all message flows given the pool ordering
|
int |
getNumOfGrids() |
int |
getRowCount(int grid) |
void |
interleave() |
void |
positionGrids(java.util.ArrayList<BPMNNodeInterface> pools,
AbstractModelAdapter model)
tries to minimize the length of message flows by switching pools
- not used anymore - instead the pools will stay where they are (ordered by y position) so
the user can define the ordering
|
void |
printToConsole() |
void |
setObject(int row,
int col,
FlowObjectWrapper obj) |
public static final int GRID_DISTANCE_X
public static final int GRID_DISTANCE_Y
public Hypergrid(java.util.ArrayList<BPMNNodeInterface> clusters, GridLayouter parent, java.util.HashMap<BPMNNodeInterface,java.lang.Integer> poolIDCache)
poolIDCache
- layoutPools
- public void addRow(int i, int grid)
i
- grid
- public void setObject(int row, int col, FlowObjectWrapper obj)
row
- col
- _obj
- public void printToConsole()
public void interleave()
public void calculateSizes(boolean synchronizePools)
public void applyCoordinates()
public int getColCount(int i)
i
- public void addCol(int x, int grid)
x
- grid
- public int getRowCount(int grid)
grid
- public Grid getGrid(int index)
public int getNumOfGrids()
public void positionGrids(java.util.ArrayList<BPMNNodeInterface> pools, AbstractModelAdapter model)
pools
- model
- public int getMessageFlowWeight(java.util.ArrayList<BPMNNodeInterface> pools, AbstractModelAdapter model)
pools
- model
-