prefuse.visual.expression
Class VisiblePredicate
java.lang.Object
prefuse.data.expression.AbstractExpression
prefuse.data.expression.ColumnExpression
prefuse.visual.expression.VisiblePredicate
- All Implemented Interfaces:
- java.util.EventListener, ExpressionListener, Expression, Function, Predicate
public class VisiblePredicate
- extends ColumnExpression
- implements Predicate, Function
Expression that indicates if an item's visible flag is set.
- Author:
- jeffrey heer
Field Summary |
static Predicate |
FALSE
Convenience instance for the visible == false case. |
static Predicate |
TRUE
Convenience instance for the visible == true case. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TRUE
public static final Predicate TRUE
- Convenience instance for the visible == true case.
FALSE
public static final Predicate FALSE
- Convenience instance for the visible == false case.
VisiblePredicate
public VisiblePredicate()
- Create a new VisiblePredicate.
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