prefuse.visual.expression
Class QueryExpression

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

public class QueryExpression
extends GroupExpression

Expression that returns the current query string of a data group of the type SearchTupleSet. The data group name is provided by a String-valued sub-expression.

Author:
jeffrey heer

Field Summary
 
Fields inherited from class prefuse.visual.expression.GroupExpression
m_group
 
Fields inherited from interface prefuse.data.expression.Function
VARARGS
 
Constructor Summary
QueryExpression()
          Create a new QueryExpression.
QueryExpression(java.lang.String group)
          Create a new QueryExpression.
 
Method Summary
 java.lang.Object get(Tuple t)
          By default, throws an UnsupportedOperationException.
 java.lang.String getName()
          Get the name of this function.
 java.lang.Class getType(Schema s)
          Returns the type that this expression evaluates to when tuples with the given Schema are provided as input.
 
Methods inherited from class prefuse.visual.expression.GroupExpression
addParameter, getGroup, getParameterCount, toString
 
Methods inherited from class prefuse.data.expression.AbstractExpression
addChildListeners, addExpressionListener, expressionChanged, fireExpressionChange, getBoolean, getDouble, getFloat, getInt, getLong, 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, getBoolean, getDouble, getFloat, getInt, getLong, removeExpressionListener, visit
 

Constructor Detail

QueryExpression

public QueryExpression()
Create a new QueryExpression.


QueryExpression

public QueryExpression(java.lang.String group)
Create a new QueryExpression.

Parameters:
group - @param group the data group name to use as a parameter
Method Detail

getName

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

Returns:
the function name
See Also:
Function.getName()

getType

public java.lang.Class getType(Schema s)
Description copied from interface: Expression
Returns the type that this expression evaluates to when tuples with the given Schema are provided as input.

See Also:
Expression.getType(prefuse.data.Schema)

get

public java.lang.Object get(Tuple t)
Description copied from class: AbstractExpression
By default, throws an UnsupportedOperationException.

Specified by:
get in interface Expression
Overrides:
get in class AbstractExpression
Parameters:
t - the input Tuple
Returns:
the Expression return value, as an Object
See Also:
Expression.get(prefuse.data.Tuple)


Copyright © 2007 Regents of the University of California