y.layout.random
Class RandomLayouter

java.lang.Object
  |
  +--y.layout.CanonicMultiStageLayouter
        |
        +--y.layout.random.RandomLayouter
All Implemented Interfaces:
Layouter

public class RandomLayouter
extends CanonicMultiStageLayouter

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 y.layout.CanonicMultiStageLayouter
appendStage, calcLayout, calcLayout, canLayout, doLayout, doLayout, enableOnlyCore, getComponentLayouter, getGroupNodeHider, getLabelLayouter, getLayoutOrientation, getOrientationLayouter, getParallelEdgeLayouter, getSelfLoopLayouter, getSubgraphLayouter, isComponentLayouterEnabled, isGroupNodeHidingEnabled, isLabelLayouterEnabled, isOrientationLayouterEnabled, isParallelEdgeLayouterEnabled, isSelfLoopLayouterEnabled, isSubgraphLayouterEnabled, prependStage, removeStage, setComponentLayouter, setComponentLayouterEnabled, setGroupNodeHider, setGroupNodeHidingEnabled, setLabelLayouter, setLabelLayouterEnabled, setLayoutOrientation, setOrientationLayouter, setOrientationLayouterEnabled, setParallelEdgeLayouter, setParallelEdgeLayouterEnabled, setSelfLoopLayouter, setSelfLoopLayouterEnabled, setSubgraphLayouter, setSubgraphLayouterEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomLayouter

public RandomLayouter()
Method Detail

setLayoutBounds

public void setLayoutBounds(Rectangle r)
Sets the rectangle, inside which the layout should be placed.


getLayoutBounds

public Rectangle getLayoutBounds()
Returns the rectangle, inside which the layout should be placed.


canLayoutCore

public boolean canLayoutCore(LayoutGraph graph)
Returns always true, because every graph can be drawn.

Specified by:
canLayoutCore in class CanonicMultiStageLayouter

doLayoutCore

public void doLayoutCore(LayoutGraph graph)
Perform the layout.

Specified by:
doLayoutCore in class CanonicMultiStageLayouter

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003