|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.CanonicMultiStageLayouter
y.layout.random.RandomLayouter
public class RandomLayouter
This class generates a layout, where the nodes are placed randomly. Edges have no bends and ports. The layout is placed inside a box.
| Field Summary |
|---|
| Fields inherited from interface y.layout.Layouter |
|---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
| Constructor Summary | |
|---|---|
RandomLayouter()
|
|
| Method Summary | |
|---|---|
boolean |
canLayoutCore(LayoutGraph graph)
Returns always true, because every graph can be drawn. |
void |
doLayoutCore(LayoutGraph graph)
Perform the layout. |
Rectangle |
getLayoutBounds()
Returns the rectangle, inside which the layout should be placed. |
long |
getSeed()
Returns the randomization seed, with which the layout will be generated. |
void |
setLayoutBounds(Rectangle r)
Sets the rectangle, inside which the layout should be placed. |
void |
setSeed(long seed)
Sets the randomization seed, with which the layout will be generated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomLayouter()
| Method Detail |
|---|
public void setLayoutBounds(Rectangle r)
public Rectangle getLayoutBounds()
public boolean canLayoutCore(LayoutGraph graph)
true, because every graph can be drawn.
canLayoutCore in class CanonicMultiStageLayouterpublic void doLayoutCore(LayoutGraph graph)
doLayoutCore in class CanonicMultiStageLayouterpublic long getSeed()
public void setSeed(long seed)
seed - the randomization seed, which determines the layout generation.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||