infovis.panel.dqinter
Class NumberColumnBoundedRangeModel

java.lang.Object
  extended by infovis.panel.DefaultDoubleBoundedRangeModel
      extended by infovis.panel.dqinter.NumberColumnBoundedRangeModel
All Implemented Interfaces:
DoubleBoundedRangeModel, DynamicQuery, RowFilter, EventListener, ChangeListener

public class NumberColumnBoundedRangeModel
extends DefaultDoubleBoundedRangeModel
implements ChangeListener, DynamicQuery

Bounded range model used as a dynamic query for range sliders.

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

Constructor Summary
NumberColumnBoundedRangeModel(NumberColumn column)
          Constructor from a NumberColumn.
 
Method Summary
 void apply()
          Apply the DynamicQuery to the specified FilterColumn
 Column getColumn()
          Returns the column.
 JComponent getComponent()
          Returns the Component associated with this dynamic query.
 FilterColumn getFilterColumn()
          
 boolean isFiltered(int row)
          Returns true if the value at that row is filtered out.
 void setColumn(NumberColumn column)
          Sets the column.
 void setFilterColumn(FilterColumn filter)
          
 void stateChanged(ChangeEvent e)
          
 void update()
          Recomputes the range when the column is modified.
 
Methods inherited from class infovis.panel.DefaultDoubleBoundedRangeModel
addChangeListener, getChangeListeners, getExtent, getMaximum, getMinimum, getValue, getValueIsAdjusting, removeChangeListener, setExtent, setMaximum, setMinimum, setRangeProperties, setValue, setValueIsAdjusting
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberColumnBoundedRangeModel

public NumberColumnBoundedRangeModel(NumberColumn column)
Constructor from a NumberColumn.

Parameters:
column - the numbercolumn.
Method Detail

stateChanged

public void stateChanged(ChangeEvent e)

Specified by:
stateChanged in interface ChangeListener

update

public void update()
Recomputes the range when the column is modified.


isFiltered

public 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(NumberColumn 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

getComponent

public JComponent getComponent()
Returns the Component associated with this dynamic query.

Specified by:
getComponent in interface DynamicQuery


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