org.drools.eclipse.editors.rete
Class Row

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

public class Row
extends Object

Represents one row in rete graph


Constructor Summary
Row(int depth)
          Default constructor.
 
Method Summary
 void add(BaseVertex vertex)
          Adds new vertex to this row.
 boolean contains(BaseVertex vertex)
           
 int getDepth()
          Returns row depth
 List getVertices()
          Returns all vertices from this row.
 int getWidth()
           
 void optimize()
          Optimizing vertices for optimal presentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Row

public Row(int depth)
Default constructor.

Parameters:
depth - row depth
Method Detail

getDepth

public int getDepth()
Returns row depth

Returns:
row depth

add

public void add(BaseVertex vertex)
Adds new vertex to this row.

Parameters:
vertex - new vertex to be added

getVertices

public List getVertices()
Returns all vertices from this row.

Returns:
list of vertices with type BaseVertex

contains

public boolean contains(BaseVertex vertex)
Parameters:
vertex -
Returns:
true if vertex is found in row. false otherwise.

getWidth

public int getWidth()
Returns:
number of vertices in row

optimize

public void optimize()
Optimizing vertices for optimal presentation



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