public class SimpleGridLayout extends java.lang.Object implements JGraphLayout
JGraphLayout.Stoppable| Modifier and Type | Field and Description |
|---|---|
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
|
VERSION| Constructor and Description |
|---|
SimpleGridLayout() |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected int numCellsPerRow
protected int heightSpacing
protected int widthSpacing
protected int offsetX
protected int offsetY
protected boolean actOnUnconnectedVerticesOnly
protected boolean ordered
public void run(JGraphFacade graph)
run in interface JGraphLayoutgraph - The layout facade that the layout will use as inputpublic int getNumCellsPerRow()
public void setNumCellsPerRow(int numCellsPerRow)
numCellsPerRow - the numCellsPerRow to setpublic boolean isActOnUnconnectedVerticesOnly()
public void setActOnUnconnectedVerticesOnly(boolean actOnUnconnectedVerticesOnly)
actOnUnconnectedVerticesOnly - the actOnUnconnectedVerticesOnly to setpublic int getHeightSpacing()
public void setHeightSpacing(int heightSpacing)
heightSpacing - the heightSpacing to setpublic int getWidthSpacing()
public void setWidthSpacing(int widthSpacing)
widthSpacing - the widthSpacing to setpublic boolean isOrdered()
public void setOrdered(boolean ordered)
ordered - the ordered to setpublic int getOffsetX()
public void setOffsetX(int offsetX)
offsetX - the offsetX to setpublic int getOffsetY()
public void setOffsetY(int offsetY)
offsetY - the offsetY to setCopyright (C) 2001-2009 JGraph Ltd. All rights reserved.