prefuse.visual.expression
Class ValidatedPredicate

java.lang.Object
  extended by prefuse.data.expression.AbstractExpression
      extended by prefuse.data.expression.ColumnExpression
          extended by prefuse.visual.expression.ValidatedPredicate
All Implemented Interfaces:
java.util.EventListener, ExpressionListener, Expression, Function, Predicate

public class ValidatedPredicate
extends ColumnExpression
implements Predicate, Function

Expression that indicates if an item's validated flag is set.

Author:
jeffrey heer

Field Summary
static Predicate FALSE
          Convenience instance for the validated == false case.
static Predicate TRUE
          Convenience instance for the validated == true case.
 
Fields inherited from class prefuse.data.expression.ColumnExpression
m_field
 
Fields inherited from interface prefuse.data.expression.Function
VARARGS
 
Constructor Summary
ValidatedPredicate()
          Create a new ValidatedPredicate.
 
Method Summary
 void addParameter(Expression e)
          Add a parameter value sub-expression to this function.
 java.lang.String getName()
          Get the name of this function.
 int getParameterCount()
          Get the maximum number of parameters accepted by this Function.
 java.lang.String toString()
           
 
Methods inherited from class prefuse.data.expression.ColumnExpression
get, getBoolean, getColumnName, getDouble, getFloat, getInt, getLong, getType
 
Methods inherited from class prefuse.data.expression.AbstractExpression
addChildListeners, addExpressionListener, expressionChanged, fireExpressionChange, hasListeners, removeChildListeners, removeExpressionListener, visit
 
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, get, getBoolean, getDouble, getFloat, getInt, getLong, getType, removeExpressionListener, visit
 

Field Detail

TRUE

public static final Predicate TRUE
Convenience instance for the validated == true case.


FALSE

public static final Predicate FALSE
Convenience instance for the validated == false case.

Constructor Detail

ValidatedPredicate

public ValidatedPredicate()
Create a new ValidatedPredicate.

Method Detail

getName

public java.lang.String getName()
Description copied from interface: Function
Get the name of this function.

Specified by:
getName in interface Function
Returns:
the function name
See Also:
Function.getName()

addParameter

public void addParameter(Expression e)
Description copied from interface: Function
Add a parameter value sub-expression to this function.

Specified by:
addParameter in interface Function
Parameters:
e - the parameter sub-expression
See Also:
Function.addParameter(prefuse.data.expression.Expression)

getParameterCount

public int getParameterCount()
Description copied from interface: Function
Get the maximum number of parameters accepted by this Function.

Specified by:
getParameterCount in interface Function
Returns:
the maximum number of parametes accepted, or Function.VARARGS is the number is variable.
See Also:
Function.getParameterCount()

toString

public java.lang.String toString()
Overrides:
toString in class ColumnExpression
See Also:
Object.toString()


Copyright © 2007 Regents of the University of California