|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.data.expression.AbstractExpression
public abstract class AbstractExpression
Abstract base class for Expression implementations. Provides support for listeners and defaults every Expression evaluation method to an unsupported operation.
| Constructor Summary | |
|---|---|
AbstractExpression()
|
|
| Method Summary | |
|---|---|
protected void |
addChildListeners()
Add child listeners to catch and propagate sub-expression updates. |
void |
addExpressionListener(ExpressionListener lstnr)
Add a listener to this Expression. |
void |
expressionChanged(Expression expr)
Relay an expression change event. |
protected void |
fireExpressionChange()
Fire an expression change. |
java.lang.Object |
get(Tuple t)
By default, throws an UnsupportedOperationException. |
boolean |
getBoolean(Tuple t)
By default, throws an UnsupportedOperationException. |
double |
getDouble(Tuple t)
By default, throws an UnsupportedOperationException. |
float |
getFloat(Tuple t)
By default, throws an UnsupportedOperationException. |
int |
getInt(Tuple t)
By default, throws an UnsupportedOperationException. |
long |
getLong(Tuple t)
By default, throws an UnsupportedOperationException. |
protected boolean |
hasListeners()
Indicates if any listeners are registered with this Expression. |
protected void |
removeChildListeners()
Remove child listeners for sub-expression updates. |
void |
removeExpressionListener(ExpressionListener lstnr)
Remove a listener to this Expression. |
void |
visit(ExpressionVisitor v)
Passes the visitor through this expression and any sub expressions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface prefuse.data.expression.Expression |
|---|
getType |
| Constructor Detail |
|---|
public AbstractExpression()
| Method Detail |
|---|
public void visit(ExpressionVisitor v)
Expression
visit in interface Expressionv - the ExpressionVisitorExpression.visit(prefuse.data.expression.ExpressionVisitor)public final void addExpressionListener(ExpressionListener lstnr)
Expression
addExpressionListener in interface Expressionlstnr - the expression listener to addExpression.addExpressionListener(prefuse.data.event.ExpressionListener)public final void removeExpressionListener(ExpressionListener lstnr)
Expression
removeExpressionListener in interface Expressionlstnr - the expression listener to removeExpression.removeExpressionListener(prefuse.data.event.ExpressionListener)protected final boolean hasListeners()
protected final void fireExpressionChange()
protected void addChildListeners()
protected void removeChildListeners()
public void expressionChanged(Expression expr)
expressionChanged in interface ExpressionListenerexpr - the modified expressionExpressionListener.expressionChanged(prefuse.data.expression.Expression)public java.lang.Object get(Tuple t)
get in interface Expressiont - the input Tuple
Expression.get(prefuse.data.Tuple)public int getInt(Tuple t)
getInt in interface Expressiont - the input Tuple
Expression.getInt(prefuse.data.Tuple)public long getLong(Tuple t)
getLong in interface Expressiont - the input Tuple
Expression.getLong(prefuse.data.Tuple)public float getFloat(Tuple t)
getFloat in interface Expressiont - the input Tuple
Expression.getFloat(prefuse.data.Tuple)public double getDouble(Tuple t)
getDouble in interface Expressiont - the input Tuple
Expression.getDouble(prefuse.data.Tuple)public boolean getBoolean(Tuple t)
getBoolean in interface Expressiont - the input Tuple
Expression.getBoolean(prefuse.data.Tuple)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||