prefuse.data.expression
Class NotPredicate

java.lang.Object
  extended byprefuse.data.expression.AbstractExpression
      extended byprefuse.data.expression.AbstractPredicate
          extended byprefuse.data.expression.NotPredicate
All Implemented Interfaces:
java.util.EventListener, Expression, ExpressionListener, Predicate

public class NotPredicate
extends AbstractPredicate

Predicate representing the negation of another predicate.

Author:
jeffrey heer

Constructor Summary
NotPredicate(Predicate p)
          Create a new NotPredicate.
 
Method Summary
protected  void addChildListeners()
          Add child listeners to catch and propagate sub-expression updates.
 boolean getBoolean(Tuple t)
          Evaluate the Expression on the given input Tuple.
 Predicate getPredicate()
          Get the negated predicate.
protected  void removeChildListeners()
          Remove child listeners for sub-expression updates.
 java.lang.String toString()
           
 void visit(ExpressionVisitor v)
          Passes the visitor through this expression and any sub expressions
 
Methods inherited from class prefuse.data.expression.AbstractPredicate
get, getType
 
Methods inherited from class prefuse.data.expression.AbstractExpression
addExpressionListener, expressionChanged, fireExpressionChange, getDouble, getFloat, getInt, getLong, hasListeners, removeExpressionListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface prefuse.data.expression.Expression
addExpressionListener, getDouble, getFloat, getInt, getLong, removeExpressionListener
 

Constructor Detail

NotPredicate

public NotPredicate(Predicate p)
Create a new NotPredicate.

Parameters:
p - the predicate to negate
Method Detail

getPredicate

public Predicate getPredicate()
Get the negated predicate.

Returns:
the negated predicate

getBoolean

public boolean getBoolean(Tuple t)
Description copied from interface: Expression
Evaluate the Expression on the given input Tuple.

Specified by:
getBoolean in interface Expression
Overrides:
getBoolean in class AbstractExpression
See Also:
Expression.getBoolean(prefuse.data.Tuple)

visit

public void visit(ExpressionVisitor v)
Description copied from interface: Expression
Passes the visitor through this expression and any sub expressions

Specified by:
visit in interface Expression
Overrides:
visit in class AbstractExpression
See Also:
Expression.visit(prefuse.data.expression.ExpressionVisitor)

toString

public java.lang.String toString()
See Also:
Object.toString()

addChildListeners

protected void addChildListeners()
Description copied from class: AbstractExpression
Add child listeners to catch and propagate sub-expression updates.

Overrides:
addChildListeners in class AbstractExpression
See Also:
AbstractExpression.addChildListeners()

removeChildListeners

protected void removeChildListeners()
Description copied from class: AbstractExpression
Remove child listeners for sub-expression updates.

Overrides:
removeChildListeners in class AbstractExpression
See Also:
AbstractExpression.removeChildListeners()


Copyright ? 2007 Regents of the University of California