|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.layout.CanonicMultiStageLayouter | +--y.layout.random.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. |
void |
setLayoutBounds(Rectangle r)
Sets the rectangle, inside which the layout should be placed. |
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 CanonicMultiStageLayouter
public void doLayoutCore(LayoutGraph graph)
doLayoutCore
in class CanonicMultiStageLayouter
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |