org.drools.reteoo
Class AlphaNodeVertex

java.lang.Object
  extended by org.drools.eclipse.editors.rete.model.ModelElement
      extended by org.drools.eclipse.editors.rete.model.GraphicalVertex
          extended by org.drools.reteoo.BaseVertex
              extended by org.drools.reteoo.AlphaNodeVertex

public class AlphaNodeVertex
extends BaseVertex

Wraps AlphaNode and adds visual extras like color information


Field Summary
 
Fields inherited from class org.drools.eclipse.editors.rete.model.GraphicalVertex
LOCATION_PROP, SIZE_PROP, SOURCE_CONNECTIONS_PROP, TARGET_CONNECTIONS_PROP
 
Constructor Summary
AlphaNodeVertex(org.drools.reteoo.AlphaNode node)
          Constructor
 
Method Summary
 org.drools.spi.Constraint getConstraint()
          Constraint
 String getEvaluator()
          Constraint's evaluator string
 String getFieldName()
          Constraint has field extractor and this method is returning fieldName it.
 org.eclipse.swt.graphics.Color getFillColor()
          Color used for filling vertex figure
 String getHtml()
          HTML formatted representation of this node
 String getValue()
          Constraint field string
 String toString()
           
 
Methods inherited from class org.drools.eclipse.editors.rete.model.GraphicalVertex
addConnection, dumpConstraints, getDrawColor, getLocation, getPropertyDescriptors, getPropertyValue, getSize, getSourceConnections, getTargetConnections, removeConnection, setLocation, setPropertyValue, setSize
 
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, wait, wait, wait
 

Constructor Detail

AlphaNodeVertex

public AlphaNodeVertex(org.drools.reteoo.AlphaNode node)
Constructor

Parameters:
node - node to be wrapped
Method Detail

getHtml

public String getHtml()
Description copied from class: GraphicalVertex
HTML formatted representation of this node

Specified by:
getHtml in class GraphicalVertex
Returns:
#getHtml

toString

public String toString()
Overrides:
toString in class GraphicalVertex

getFillColor

public org.eclipse.swt.graphics.Color getFillColor()
Description copied from class: GraphicalVertex
Color used for filling vertex figure

Specified by:
getFillColor in class GraphicalVertex
Returns:
color

getFieldName

public String getFieldName()
Constraint has field extractor and this method is returning fieldName it.

Returns:
field name

getEvaluator

public String getEvaluator()
Constraint's evaluator string

Returns:
evaluator string

getValue

public String getValue()
Constraint field string

Returns:
field string

getConstraint

public org.drools.spi.Constraint getConstraint()
Constraint

Returns:
constraint


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