prefuse.data.expression
Class NotPredicate

java.lang.Object
  extended by prefuse.data.expression.AbstractExpression
      extended by prefuse.data.expression.AbstractPredicate
          extended by prefuse.data.expression.NotPredicate
All Implemented Interfaces:
java.util.EventListener, ExpressionListener, Expression, 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)
          By default, throws an UnsupportedOperationException.
 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 class: AbstractExpression
By default, throws an UnsupportedOperationException.

Specified by:
getBoolean in interface Expression
Overrides:
getBoolean in class AbstractExpression
Parameters:
t - the input Tuple
Returns:
the Expression return value, as a boolean
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
Parameters:
v - the ExpressionVisitor
See Also:
Expression.visit(prefuse.data.expression.ExpressionVisitor)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
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