de.cau.cs.kieler.kiml.util
Class RandomLayoutProvider

java.lang.Object
  extended by de.cau.cs.kieler.core.properties.MapPropertyHolder
      extended by de.cau.cs.kieler.kiml.AbstractLayoutProvider
          extended by de.cau.cs.kieler.kiml.util.RandomLayoutProvider
All Implemented Interfaces:
IPropertyHolder

public class RandomLayoutProvider
extends AbstractLayoutProvider

Layout provider that computes random layouts.

Rating red

Field Summary
static String ID
          the layout provider id.
 
Constructor Summary
RandomLayoutProvider()
          Initialize default options of the layout provider.
 
Method Summary
 void doLayout(KNode parentNode, IKielerProgressMonitor progressMonitor)
          Performs the actual layout process, that is attaches layout information to the given node object.
 
Methods inherited from class de.cau.cs.kieler.kiml.AbstractLayoutProvider
getDebugCanvas, initialize, setDebugCanvas, supportsHierarchy
 
Methods inherited from class de.cau.cs.kieler.core.properties.MapPropertyHolder
copyProperties, getAllProperties, getProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
the layout provider id.

See Also:
Constant Field Values
Constructor Detail

RandomLayoutProvider

public RandomLayoutProvider()
Initialize default options of the layout provider.

Method Detail

doLayout

public void doLayout(KNode parentNode,
                     IKielerProgressMonitor progressMonitor)
              throws KielerException
Performs the actual layout process, that is attaches layout information to the given node object.

Specified by:
doLayout in class AbstractLayoutProvider
Parameters:
parentNode - the parent node which should be laid out
progressMonitor - progress monitor used to keep track of progress
Throws:
KielerException - if the method fails to perform layout