org.drools.eclipse.editors.rete
Class ReteooLayoutFactory

java.lang.Object
  extended by org.drools.eclipse.editors.rete.ReteooLayoutFactory

public class ReteooLayoutFactory
extends Object

Factory methods for calculating and layouting reteoo graph


Constructor Summary
ReteooLayoutFactory()
           
 
Method Summary
static RowList calculateReteRows(BaseVertex root)
          Calculates layouting for provided graph.
static void layoutRowList(ReteGraph graph, RowList rowList)
          Adds all vertices from rowList to the graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReteooLayoutFactory

public ReteooLayoutFactory()
Method Detail

calculateReteRows

public static RowList calculateReteRows(BaseVertex root)
Calculates layouting for provided graph.

Parameters:
root - graph root vertex
Returns:
Optimally layouted rows from provided graph

layoutRowList

public static void layoutRowList(ReteGraph graph,
                                 RowList rowList)
Adds all vertices from rowList to the graph.

Parameters:
graph -
rowList -


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.