com.jgraph.layout.simple
public class SimpleGridLayout extends Object implements JGraphLayout
Field Summary | |
---|---|
protected boolean | actOnUnconnectedVerticesOnly Whether or not to only act of unconnected vertices |
protected int | heightSpacing Height spacing between vertices |
protected int | numCellsPerRow Limit of the number of vertices |
protected int | offsetX Offset of the top left corner of the grid |
protected int | offsetY Offset of the top left corner of the grid |
protected boolean | ordered Whether or not the vertices are to be ordered by their model ordering |
protected int | widthSpacing Width spacing between vertices |
Constructor Summary | |
---|---|
SimpleGridLayout() |
Method Summary | |
---|---|
int | getHeightSpacing() |
int | getNumCellsPerRow() |
int | getOffsetX() |
int | getOffsetY() |
int | getWidthSpacing() |
boolean | isActOnUnconnectedVerticesOnly() |
boolean | isOrdered() |
void | run(JGraphFacade graph)
Executes the main layout |
void | setActOnUnconnectedVerticesOnly(boolean actOnUnconnectedVerticesOnly) |
void | setHeightSpacing(int heightSpacing) |
void | setNumCellsPerRow(int numCellsPerRow) |
void | setOffsetX(int offsetX) |
void | setOffsetY(int offsetY) |
void | setOrdered(boolean ordered) |
void | setWidthSpacing(int widthSpacing) |
Returns: the heightSpacing
Returns: the numCellsPerRow
Returns: the offsetX
Returns: the offsetY
Returns: the widthSpacing
Returns: the actOnUnconnectedVerticesOnly
Returns: the ordered
Parameters: actOnUnconnectedVerticesOnly the actOnUnconnectedVerticesOnly to set
Parameters: heightSpacing the heightSpacing to set
Parameters: numCellsPerRow the numCellsPerRow to set
Parameters: offsetX the offsetX to set
Parameters: offsetY the offsetY to set
Parameters: ordered the ordered to set
Parameters: widthSpacing the widthSpacing to set