|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nwoods.jgo.layout.JGoAutoLayout
com.nwoods.jgo.layout.JGoRandomAutoLayout
JGoRandomAutoLayout provides an auto-layout algorithm which randomly positions nodes in the document.
| Constructor Summary | |
JGoRandomAutoLayout()
Constructs a RandomAutoLayout with null values for myGoNetwork and myGoDocument. |
|
JGoRandomAutoLayout(JGoDocument doc)
Constructs a RandomAutoLayout with myGoDocument of doc. |
|
JGoRandomAutoLayout(JGoDocument doc,
int Nminx,
int Nmaxx,
int Nminy,
int Nmaxy)
Constructs a RandomAutoLayout with JGoDocument doc, and minimum and maximum x and y position as defined by the input parameters. |
|
JGoRandomAutoLayout(JGoDocument doc,
JGoNetwork network)
Constructs a RandomAutoLayout with myGoDocument of doc, and myGoNetwork of network. |
|
JGoRandomAutoLayout(JGoDocument doc,
JGoNetwork network,
int Nminx,
int Nmaxx,
int Nminy,
int Nmaxy)
Constructs a RandomAutoLayout with JGoDocument doc, JGoNetwork network, and minimum and maximum x and y position as defined by the input parameters. |
|
| Method Summary | |
protected boolean |
isFixed(JGoNetworkNode pNode)
The function isFixed returns true if the node should not be moved by the layout algorithm. |
void |
performLayout()
Performs random positioning auto-layout. |
| Methods inherited from class com.nwoods.jgo.layout.JGoAutoLayout |
getDocument, getNetwork, progressUpdate, setDocument, setNetwork |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JGoRandomAutoLayout()
public JGoRandomAutoLayout(JGoDocument doc)
doc - the JGoDocument containing the JGoObjects to layout
public JGoRandomAutoLayout(JGoDocument doc,
JGoNetwork network)
doc - the JGoDocument containing the JGoObjects to layoutnetwork - the JGoNetwork representation of the JGoObjects to layout
public JGoRandomAutoLayout(JGoDocument doc,
int Nminx,
int Nmaxx,
int Nminy,
int Nmaxy)
doc - the JGoDocument containing the JGoObjects to layoutNminx - the minimum x coordinate at which a node will be positionedNmaxx - the maximum x coordinate at which a node will be positionedNminy - the minimum y coordinate at which a node will be positionedNmaxy - the maximum y coordinate at which a node will be positioned
public JGoRandomAutoLayout(JGoDocument doc,
JGoNetwork network,
int Nminx,
int Nmaxx,
int Nminy,
int Nmaxy)
doc - the JGoDocument containing the JGoObjects to layoutnetwork - the JGoNetwork representation of the JGoObjects to layoutNminx - the minimum x coordinate at which a node will be positionedNmaxx - the maximum x coordinate at which a node will be positionedNminy - the minimum y coordinate at which a node will be positionedNmaxy - the maximum y coordinate at which a node will be positioned| Method Detail |
public void performLayout()
performLayout in class JGoAutoLayoutprotected boolean isFixed(JGoNetworkNode pNode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||