|
JGraph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jgraph.layout.simple.SimpleGridLayout
A simple grid layout algorithm that takes the specified vertices and arranges them in rectangular fashion
| Nested Class Summary |
| Nested classes inherited from class com.jgraph.layout.JGraphLayout |
JGraphLayout.Stoppable |
| 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 |
| Fields inherited from interface com.jgraph.layout.JGraphLayout |
VERSION |
| 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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int numCellsPerRow
protected int heightSpacing
protected int widthSpacing
protected int offsetX
protected int offsetY
protected boolean actOnUnconnectedVerticesOnly
protected boolean ordered
| Constructor Detail |
public SimpleGridLayout()
| Method Detail |
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 set
|
JGraph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||