infovis.panel.dqinter
Class AbstractDynamicQuery

java.lang.Object
  extended by infovis.panel.dqinter.AbstractDynamicQuery
All Implemented Interfaces:
DynamicQuery, RowFilter, EventListener, ChangeListener
Direct Known Subclasses:
CategoricalDynamicQuery, FilterEdgeDynamicQuery, StringSearchDynamicQuery

public abstract class AbstractDynamicQuery
extends Object
implements DynamicQuery, ChangeListener

Base abstract class for Dynamic Queries.

Version:
$Revision: 1.5 $
Author:
Jean-Daniel Fekete

Constructor Summary
AbstractDynamicQuery(Column column)
          Constructor.
 
Method Summary
 void apply()
          Apply the DynamicQuery to the specified FilterColumn
 Column getColumn()
          Returns the column.
 FilterColumn getFilterColumn()
          
abstract  boolean isFiltered(int row)
          Returns true if the value at that row is filtered out.
 void setColumn(Column column)
          Sets the column.
 void setFilterColumn(FilterColumn filter)
          
 void stateChanged(ChangeEvent e)
          
abstract  void update()
          Method called when the column is modified.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface infovis.panel.DynamicQuery
getComponent
 

Constructor Detail

AbstractDynamicQuery

public AbstractDynamicQuery(Column column)
Constructor.

Parameters:
column - the column
Method Detail

stateChanged

public void stateChanged(ChangeEvent e)

Specified by:
stateChanged in interface ChangeListener

update

public abstract void update()
Method called when the column is modified.


isFiltered

public abstract boolean isFiltered(int row)
Returns true if the value at that row is filtered out.

Specified by:
isFiltered in interface DynamicQuery
Specified by:
isFiltered in interface RowFilter
Parameters:
row - the row to check.
Returns:
true if the value at that row is filtered out.

getColumn

public Column getColumn()
Returns the column.

Specified by:
getColumn in interface DynamicQuery
Returns:
Column

setColumn

public void setColumn(Column column)
Sets the column.

Parameters:
column - The column to set

getFilterColumn

public FilterColumn getFilterColumn()

Specified by:
getFilterColumn in interface DynamicQuery

setFilterColumn

public void setFilterColumn(FilterColumn filter)

Specified by:
setFilterColumn in interface DynamicQuery

apply

public void apply()
Apply the DynamicQuery to the specified FilterColumn

Specified by:
apply in interface DynamicQuery


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.