org.drools.eclipse.editors.rete.model
Class ReteGraph

java.lang.Object
  extended by org.drools.eclipse.editors.rete.model.ModelElement
      extended by org.drools.eclipse.editors.rete.model.ReteGraph

public class ReteGraph
extends ModelElement

Rete graph containing a set of vertices that form the graph itself.


Field Summary
static String PROP_CHILD_ADDED
          Property ID to use when a child is added to this diagram.
static String PROP_CHILD_REMOVED
          Property ID to use when a child is removed from this diagram.
 
Constructor Summary
ReteGraph()
           
 
Method Summary
 void addAll(List children)
           
 boolean addChild(BaseVertex vertex)
          Add new BaseVertex to the graph
 List getChildren()
          Return all Vertices in this graph
 void removeAll()
          Removes all vertices from graph.
 boolean removeChild(BaseVertex vertex)
          Remove a vertex from this graph
 
Methods inherited from class org.drools.eclipse.editors.rete.model.ModelElement
addPropertyChangeListener, firePropertyChange, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_CHILD_ADDED

public static final String PROP_CHILD_ADDED
Property ID to use when a child is added to this diagram.

See Also:
Constant Field Values

PROP_CHILD_REMOVED

public static final String PROP_CHILD_REMOVED
Property ID to use when a child is removed from this diagram.

See Also:
Constant Field Values
Constructor Detail

ReteGraph

public ReteGraph()
Method Detail

addChild

public boolean addChild(BaseVertex vertex)
Add new BaseVertex to the graph

Parameters:
vertex -
Returns:
true, if vertex was added, false otherwise

getChildren

public List getChildren()
Return all Vertices in this graph


removeChild

public boolean removeChild(BaseVertex vertex)
Remove a vertex from this graph

Parameters:
vertex - vertex to be removed
Returns:
true, if the vertex removal succeeded, false otherwise

removeAll

public void removeAll()
Removes all vertices from graph.


addAll

public void addAll(List children)


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